We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7d6603 + 1ba594c commit 82f865dCopy full SHA for 82f865d
src/platform/sdl/runtime.cpp
@@ -417,7 +417,11 @@ void Runtime::handleKeyEvent(MAEvent &event) {
417
418
// handle ALT/SHIFT/CTRL states
419
if (event.key != -1) {
420
- if ((event.nativeKey & KMOD_CTRL) &&
+ if ((event.nativeKey & KMOD_ALT) &&
421
+ (event.key == SDLK_LALT || event.key == SDLK_RALT)) {
422
+ // ignore ALT press without modifier key
423
+ event.key = -1;
424
+ } else if ((event.nativeKey & KMOD_CTRL) &&
425
(event.nativeKey & KMOD_ALT)) {
426
event.key = SB_KEY_CTRL_ALT(event.key);
427
} else if ((event.nativeKey & KMOD_CTRL) &&
0 commit comments