mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
GUI: Support keypad Enter key in dialogs
This commit is contained in:
parent
fbba2c92d7
commit
18fb0498b5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user