Page 1 of 1

[0.17.1] Super not recognized as a modifier under Linux

Posted: Wed Feb 27, 2019 5:14 am
by tehfreek
When attempting to use the Super key (commonly called the "Windows key") as a modifier in a keybind under Linux, Super is not acknowledged at all. Pressing Ctrl+Super+Left Click results in Ctrl+Left Click, Shift+Super+Left Click results in Shift+Left Click, etc. When assigned to a non-mouse control, pressing left Super on its own results in "LEFT GUI" being bound (my keyboard does not have a right Super, and so I cannot test that specific key). The Menu key correctly results in the non-modifier "MENU".

The specific control I am attempting to rebind is "Ping a map location", since by default Alt-clicking results in moving the window rather than passing the event to the application.

Re: [0.17.1] Super not recognized as a modifier under Linux

Posted: Wed Feb 27, 2019 5:27 am
by nforrester
This looks closely related: viewtopic.php?f=7&t=65383

Re: [0.17.1] Super not recognized as a modifier under Linux

Posted: Wed Feb 27, 2019 5:30 am
by tehfreek
The key "works", it's just handled incorrectly by the engine.

Re: [0.17.1] Super not recognized as a modifier under Linux

Posted: Wed Feb 27, 2019 7:01 am
by posila
Is that something that worked in 0.16? I am pretty sure the game handles only Shift, Ctrl, Alt and Command on macOS as modifier keys, so I am wondering if Super just happend to go through Command code-path in 0.16

Re: [0.17.1] Super not recognized as a modifier under Linux

Posted: Wed Feb 27, 2019 7:10 am
by tehfreek
I just tested, and it's treated the same way under 0.16.51 except that the key is called "SUPER_L" (and presumably "SUPER_R"). I just never tried to use it under 0.16 since there were no keybindings that used Alt as a modifier with the mouse by default.