diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 19:42:10 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 19:42:10 +0000 |
commit | 99f361699e1c8bbc1e69f4d199863b836b3528a3 (patch) | |
tree | a0223df3b3a8ce2d7adfa270f45a25f930309d42 /src/gui/windows/quitdialog.cpp | |
parent | 4337008fdeef5bb01be2fc6fed1683d5941f23ae (diff) | |
parent | ce7efa33a54fdf37416631057dc13799dc2f847f (diff) | |
download | plus-99f361699e1c8bbc1e69f4d199863b836b3528a3.tar.gz plus-99f361699e1c8bbc1e69f4d199863b836b3528a3.tar.bz2 plus-99f361699e1c8bbc1e69f4d199863b836b3528a3.tar.xz plus-99f361699e1c8bbc1e69f4d199863b836b3528a3.zip |
Merge branch 'improved_controller' into 'master'
Controller improvements
See merge request mana/plus!52
Diffstat (limited to 'src/gui/windows/quitdialog.cpp')
-rw-r--r-- | src/gui/windows/quitdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/quitdialog.cpp b/src/gui/windows/quitdialog.cpp index d1ceb1ad9..7ef2bc6e8 100644 --- a/src/gui/windows/quitdialog.cpp +++ b/src/gui/windows/quitdialog.cpp @@ -210,6 +210,7 @@ void QuitDialog::keyPressed(KeyEvent &event) { const InputActionT actionId = event.getActionId(); int dir = 0; + bool consume = true; PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wswitch-enum") @@ -229,10 +230,14 @@ void QuitDialog::keyPressed(KeyEvent &event) dir = 1; break; default: + consume = false; break; } PRAGMA45(GCC diagnostic pop) + if (consume) + event.consume(); + if (dir != 0) { STD_VECTOR<RadioButton*>::const_iterator it = mOptions.begin(); |