GRAPHICS: MACGUI: Pass keyboard event to active widget in editable window
This commit is contained in:
parent
cc58bbb05a
commit
5ff383d042
2 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -218,6 +218,8 @@ public:
|
|||
*/
|
||||
void setActiveWidget(MacWidget *widget);
|
||||
|
||||
MacWidget *getActiveWidget() { return _activeWidget; }
|
||||
|
||||
void pushArrowCursor();
|
||||
void pushBeamCursor();
|
||||
void pushCrossHairCursor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue