KYRA: Don't loose the next event when leaving the text input event loop.

This commit is contained in:
Bastien Bouclet 2011-07-22 19:53:18 +02:00
parent 192b245d51
commit 3384f9146c

View File

@ -415,7 +415,7 @@ void GUI::checkTextfieldInput() {
bool running = true;
int keys = 0;
while (_vm->_eventMan->pollEvent(event) && running) {
while (running && _vm->_eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_KEYDOWN:
if (event.kbd.keycode == Common::KEYCODE_q && event.kbd.hasFlags(Common::KBD_CTRL))