GRAPHICS: MACGUI: Pass keyboard event to active widget in editable window

This commit is contained in:
Eugene Sandulenko 2020-05-01 00:41:51 +02:00
parent cc58bbb05a
commit 5ff383d042
2 changed files with 12 additions and 0 deletions

View file

@ -545,6 +545,16 @@ bool MacWindow::processEvent(Common::Event &event) {
setHighlight(kBorderNone);
break;
case Common::EVENT_KEYDOWN:
if (!_editable)
return false;
if (_wm->getActiveWidget())
return _wm->getActiveWidget()->processEvent(event);
return false;
default:
return false;
}