Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALT + tab button? #268

Open
aschurr0 opened this issue Nov 2, 2024 · 1 comment
Open

ALT + tab button? #268

aschurr0 opened this issue Nov 2, 2024 · 1 comment

Comments

@aschurr0
Copy link

aschurr0 commented Nov 2, 2024

Maybe this isn't something that's able to be done but i was wondering if it's possible to bind one of the keys to alt + tab. I attempted to do this on both the Kinesis Web UI and this one but could not figure out how to do so. Hoping there's a way to do it. Thanks! :)

@nickcoutsos
Copy link
Owner

You can definitely do it, with the caveat that the behavior you're looking might need a little more.

To start off, although some people new to ZMK might instinctively reach for macros you can bind Alt+Tab to a single key by applying a modifier as shown below:

The initial binding &kp TAB:
Screenshot 2024-11-02 at 3 28 58 PM

Looking at the keybind in the binding dialog:

Screenshot 2024-11-02 at 3 29 03 PM

Inspecting the TAB keycode
Screenshot 2024-11-02 at 3 32 01 PM

Applying the LALT modifier
Screenshot 2024-11-02 at 3 29 30 PM

The new key binding
Screenshot 2024-11-02 at 3 30 20 PM

Note: I'm on macos, so ALT is shown here using a different symbol.

With this keybind you can press this key and send Alt + Tab to your computer.

Things to consider

I think a typical use case is for people to switch windows by holding Alt, then tapping Tab until the desired is reached, then finally releasing Alt -- but that doesn't really work with a single key. With this keybinding you're effectively getting "switch to last window" with each keypress. I don't know what's become of it but someone was working on a ZMK behavior to handle this: zmkfirmware/zmk#1366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants