diff options
-rw-r--r-- | gui/ListWidget.cpp | 7 | ||||
-rw-r--r-- | gui/newgui.cpp | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index 84275b43b7..1090ae60fd 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -197,7 +197,14 @@ bool ListWidget::handleKeyDown(char key, int modifiers) _scrollBar->draw(); } +#ifndef _WIN32_WCE + + // not done on WinCE because keyboard is emulated and + // keyup is not generated + _currentKeyDown = key; + +#endif return handled; } diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 0ce93c7300..75c416750e 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -134,10 +134,14 @@ void NewGui::runLoop() case OSystem::EVENT_KEYDOWN: activeDialog->handleKeyDown((byte)event.kbd.ascii, event.kbd.flags); +#ifndef _WIN32_WCE // init continuous event stream + // not done on WinCE because keyboard is emulated and + // keyup is not generated _currentKeyDown = event.kbd.ascii; _currentKeyDownFlags = event.kbd.flags; _keyRepeatTime = time + kKeyRepeatInitialDelay; +#endif break; case OSystem::EVENT_KEYUP: activeDialog->handleKeyUp((byte)event.kbd.ascii, event.kbd.flags); |