GUI: Support keypad Enter key in dialogs

This commit is contained in:
Orgad Shaneh 2021-08-17 23:40:42 +03:00 committed by Filippos Karapetis
parent fbba2c92d7
commit 18fb0498b5

View File

@ -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);