diff options
author | Bastien Bouclet | 2017-08-06 17:53:57 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-08-06 17:55:33 +0200 |
commit | f5b335af100c84d2ad761548825548d6fe3be125 (patch) | |
tree | 09bc90ef40d55492989fb48ab9102548dbe8bbad /gui/widgets/popup.cpp | |
parent | 8e5ac98a4b6082caf68ad205dc6cadffa4df5051 (diff) | |
download | scummvm-rg350-f5b335af100c84d2ad761548825548d6fe3be125.tar.gz scummvm-rg350-f5b335af100c84d2ad761548825548d6fe3be125.tar.bz2 scummvm-rg350-f5b335af100c84d2ad761548825548d6fe3be125.zip |
GUI: Mark some fall-through cases as intentional
Comments explain how the num lock handling works before the
fall-through cases.
Diffstat (limited to 'gui/widgets/popup.cpp')
-rw-r--r-- | gui/widgets/popup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/widgets/popup.cpp b/gui/widgets/popup.cpp index 82f4112a97..74fbc44823 100644 --- a/gui/widgets/popup.cpp +++ b/gui/widgets/popup.cpp @@ -234,6 +234,7 @@ void PopUpDialog::handleKeyDown(Common::KeyState state) { case Common::KEYCODE_KP1: if (state.flags & Common::KBD_NUM) break; + // fall through case Common::KEYCODE_END: setSelection(_popUpBoss->_entries.size()-1); break; @@ -241,6 +242,7 @@ void PopUpDialog::handleKeyDown(Common::KeyState state) { case Common::KEYCODE_KP2: if (state.flags & Common::KBD_NUM) break; + // fall through case Common::KEYCODE_DOWN: moveDown(); break; @@ -248,6 +250,7 @@ void PopUpDialog::handleKeyDown(Common::KeyState state) { case Common::KEYCODE_KP7: if (state.flags & Common::KBD_NUM) break; + // fall through case Common::KEYCODE_HOME: setSelection(0); break; @@ -255,6 +258,7 @@ void PopUpDialog::handleKeyDown(Common::KeyState state) { case Common::KEYCODE_KP8: if (state.flags & Common::KBD_NUM) break; + // fall through case Common::KEYCODE_UP: moveUp(); break; |