rbreaves/kinto

In Kali Linux, I used to shift between windows via option+tab now I have to option+shift+tab ; how do I revert?

Opened this issue · 3 comments

In Kali Linux, On my Mac I used to switch between windows via option+tab now I have to option+shift+tab ; what do I change in ~/.config/kinto/kinto.py to switch windows via option+tab on my Mac

thank you

@DeepakTivari

I may be off-base here, but have you tried Cmd+Tab? Option+Tab should be getting blocked by the Kinto config, because task switching on macOS is done with Cmd+Tab (or physical Alt+Tab on a PC keyboard).

On the other hand, Shift+Option+Tab isn't actively blocked in the config, so that still works. But the point of the config is to make things work as if you were using macOS. Cmd+Tab, and Shift+Cmd+Tab should do the normal task switching. In the config these are shown here as "RC-Tab" and "RC-Shift-Tab", which are remapped onto "Alt-Tab" and "Alt-Shift-Tab".

kinto/linux/kinto.py

Lines 554 to 556 in 4a3bfe7

K("Alt-Tab"): pass_through_key, # Default - Cmd Tab - App Switching Default
K("RC-Tab"): K("Alt-Tab"), # Default - Cmd Tab - App Switching Default
K("RC-Shift-Tab"): K("Alt-Shift-Tab"), # Default - Cmd Tab - App Switching Default

Where it says pass_through_key here is actually a way to block the Alt+Tab (Option+Tab if you're on an Apple keyboard) shortcut. You could just comment out that line and restart Kinto, if you really want to use Option+Tab again. But normally it's much less awkward to use Cmd+Tab.

But normally it's much less awkward to use Cmd+Tab

Cmd+Tab is used for me to switch between applications running on my Mac, even when I am working inside the Kali Linux VM, hence I use the Option+Tab key to switch windows inside the Kali Linux VM

Commenting out the "pass_through_key" line works for me, thank you very much!

@DeepakTivari

Cmd+Tab is used for me to switch between applications running on my Mac, even when I am working inside the Kali Linux VM, hence I use the Option+Tab key to switch windows inside the Kali Linux VM

Ah, that's a situation where it can actually make sense to stick to the Option+Tab for switching inside the VM. On my Linux laptops I am fortunately able to use trackpad gestures to just swipe away from the VM in a different workspace, that way the Cmd+Tab equivalent shortcut is usable in both the host and the guest.

I'm sure you know this but you can usually get the VM to release the keyboard with a shortcut combo like Ctrl+Alt. This can also allow the same task switching combo to be used in the guest and the host. But it can be a bit awkward. You usually have to click inside the VM window to get it to grab the keyboard again.

You should close this if your issue is resolved.