aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index 871e10416d..13019d589c 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -78,11 +78,12 @@ bool CopyProtectionDialog::show() {
_vm->_events->showCursor();
// TODO: Replace with text input
- while (!_vm->shouldQuit() && !_vm->_events->_keyPressed &&
+ while (!_vm->shouldQuit() && !_vm->_events->isKeyPressed() &&
!_vm->_events->_mouseClicked) {
_vm->_events->delay(1);
}
+ _vm->_events->_pendingKeys.clear();
return true;
}