If I use

    if (code.mod & (KMOD_LCTRL | KMOD_RCTRL)) {

it works with the control keys, If I use

    if (code.mod & (KMOD_LALT | KMOD_RALT)) {

It does not work with the Alt keys. Same code, different key *headdesk*
-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-1616661_messagebox_hotkeys/+merge/305381
Your team Widelands Developers is subscribed to branch 
lp:~widelands-dev/widelands/bug-1616661_messagebox_hotkeys.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to