[Scummvm-git-logs] scummvm master -> 18fb0498b5d446c54c3e6e94bae4fa909d01d3cc
bluegr
bluegr at gmail.com
Tue Aug 17 21:39:45 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
18fb0498b5 GUI: Support keypad Enter key in dialogs
Commit: 18fb0498b5d446c54c3e6e94bae4fa909d01d3cc
https://github.com/scummvm/scummvm/commit/18fb0498b5d446c54c3e6e94bae4fa909d01d3cc
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-08-18T00:39:42+03:00
Commit Message:
GUI: Support keypad Enter key in dialogs
Changed paths:
gui/dialog.cpp
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 4f825b1e6f..24409781d0 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -253,6 +253,11 @@ void Dialog::handleKeyDown(Common::KeyState state) {
}
// Hotkey handling
+
+ // Convert keypad Enter to Return key
+ if (state.keycode == Common::KEYCODE_KP_ENTER) {
+ state.ascii = Common::ASCII_RETURN;
+ }
if (state.ascii != 0) {
Widget *w = _firstWidget;
state.ascii = toupper(state.ascii);
More information about the Scummvm-git-logs
mailing list