arjan / gnome-shell-go-to-last-workspace

Extension for the Gnome Shell to quickly toggle between two workspaces
23 stars 4 forks source link

Does not work with caps lock as escape key #17

Open dingens opened 10 months ago

dingens commented 10 months ago

When using the caps:escape layout option (which means that the caps lock key is an additional escape key), only pressing Super plus the "real" escape key switches the workspace; pressing Super plus CapsLock doesn't. (Although just pressing CapsLock works as escape just fine).

xev output for the two keys (without super)

esc:
KeyPress event, serial 75, synthetic NO, window 0xe00001,
    root 0x4a7, subw 0x0, time 34668784, (63,-9), root:(263,261),
    state 0x10, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
    XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False

capslock:
KeyPress event, serial 75, synthetic NO, window 0xe00001,
    root 0x4a7, subw 0x0, time 34689212, (413,-220), root:(613,50),
    state 0x10, keycode 66 (keysym 0xff1b, Escape), same_screen YES,
    XKeysymToKeycode returns keycode: 9
    XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False

(Interestingly, super+capslock works fine when using the caps:swapescape option)

I just have a gnome 42 at hand to test, sorry if this has been fixed. I did not find any issues about this however.