diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-29 12:32:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-29 12:32:55 +0300 |
commit | f3f8d328ef14b3e454b5612dfc4c02c71130f92d (patch) | |
tree | 22871fe6e72acd1f48b11c92a803a217d9a6d4fe /src/ui/keys.c | |
parent | 6dc49edb93b6e9099a97b502fde246619bbc49c8 (diff) |
Fixed: Keyboard shortcuts stop working
Menus can't be disabled or otherwise their items can't be triggered
any more. Hidden menus are still supposed to receive key events.
IssueID #224
Diffstat (limited to 'src/ui/keys.c')
-rw-r--r-- | src/ui/keys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c index 456ca928..ecf65995 100644 --- a/src/ui/keys.c +++ b/src/ui/keys.c | |||
@@ -426,6 +426,7 @@ iBool processEvent_Keys(const SDL_Event *ev) { | |||
426 | iKeys *d = &keys_; | 426 | iKeys *d = &keys_; |
427 | if (ev->type == SDL_KEYDOWN || ev->type == SDL_KEYUP) { | 427 | if (ev->type == SDL_KEYDOWN || ev->type == SDL_KEYUP) { |
428 | const iBinding *bind = find_Keys_(d, ev->key.keysym.sym, keyMods_Sym(ev->key.keysym.mod)); | 428 | const iBinding *bind = find_Keys_(d, ev->key.keysym.sym, keyMods_Sym(ev->key.keysym.mod)); |
429 | printf("[Keys] bind: %p\n", bind); fflush(stdout); | ||
429 | if (bind) { | 430 | if (bind) { |
430 | if (ev->type == SDL_KEYUP) { | 431 | if (ev->type == SDL_KEYUP) { |
431 | if (bind->flags & argRelease_BindFlag) { | 432 | if (bind->flags & argRelease_BindFlag) { |