G-dH / advanced-alttab-window-switcher

A highly customizable replacement for Gnome Shell's Alt-Tab window and app switchers.
GNU General Public License v3.0
151 stars 11 forks source link

[BUG] Switcher won't confirm selection with non-standard shortcut #63

Closed notpeelz closed 1 year ago

notpeelz commented 1 year ago

Describe the bug When changing the window/app switcher to a non-standard shortcut (e.g Super+Q), the switcher window no longer closes when releasing the keys. Instead, I have to manually confirm the selection by pressing enter.

To Reproduce Steps to reproduce the behavior:

  1. Open the GNOME keyboard settings
  2. Click "View and Customize Shortcuts" and set "Switch windows" to Super+Q
  3. Press Super+Q

Expected behavior I expected the switcher to confirm the selection upon releasing the shortcut keys, just like it does when the shortcut is set to Alt+Tab.

Desktop

G-dH commented 1 year ago

There is a conflict with Search Mode as Default option, but when it's disabled it should work as you expect, and it works for me on GS 42.5 and also 43.2 and 44.beta. Only if you use shortcut to activate search input, then you can release the modifier key without closing the popup. Execute following command in the terminal, then use the switcher and check if there's any relevant output that can help with debugging. journalctl /usr/bin/gnome-shell -fo cat

notpeelz commented 1 year ago

It happens even with Search Mode as Default disabled. Actually, I just realized I have my caps lock key remapped to hyper (not super):

gsettings set org.gnome.desktop.input-sources xkb-options "['caps:hyper']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Hyper>q']"

The problem occurs when caps+q is pressed. super+q works as expected.

G-dH commented 1 year ago

Fixed, hopefully without collateral damage :) Available in the repository.

notpeelz commented 1 year ago

Thanks. That did the trick :)