diff options
author | Paul Gilbert | 2010-02-10 11:03:04 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-02-10 11:03:04 +0000 |
commit | a435237a385a96e979f06cf0b6b5d6a2287656db (patch) | |
tree | b4f24fe68837d0467ddbf9664a8fc64f2cbfa364 /engines/m4/viewmgr.cpp | |
parent | 9fb9c0955df4402d796c2ea02b3da19377e5e480 (diff) | |
download | scummvm-rg350-a435237a385a96e979f06cf0b6b5d6a2287656db.tar.gz scummvm-rg350-a435237a385a96e979f06cf0b6b5d6a2287656db.tar.bz2 scummvm-rg350-a435237a385a96e979f06cf0b6b5d6a2287656db.zip |
Bugfix for crash when view gets focus based on a key event
svn-id: r48029
Diffstat (limited to 'engines/m4/viewmgr.cpp')
-rw-r--r-- | engines/m4/viewmgr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/m4/viewmgr.cpp b/engines/m4/viewmgr.cpp index 1b70f8db21..46b4b5af9d 100644 --- a/engines/m4/viewmgr.cpp +++ b/engines/m4/viewmgr.cpp @@ -247,6 +247,8 @@ void ViewManager::handleKeyboardEvents(uint32 keycode) { if (view->screenFlags().get & SCREVENT_KEY) { foundFlag = true; handledFlag = (view->onEvent)(KEVENT_KEY, keycode, mousePos.x, mousePos.y, _captureEvents); + if (_captureEvents) + _captureScreen = view; } } |