Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Ignore keys with modifiers in MacTextWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 22, 2017
1 parent 5e9b72f commit a7dbacb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions graphics/macgui/mactextwindow.cpp
Expand Up @@ -279,6 +279,10 @@ bool MacTextWindow::processEvent(Common::Event &event) {
if (event.type == Common::EVENT_KEYDOWN) {
_wm->setActive(getId());

if (event.kbd.flags & (Common::KBD_ALT | Common::KBD_CTRL | Common::KBD_META)) {
return false;
}

switch (event.kbd.keycode) {
case Common::KEYCODE_BACKSPACE:
if (!_inputText.empty()) {
Expand Down

0 comments on commit a7dbacb

Please sign in to comment.