Stefano's investigations did the trick: added MenusBeginning()/MenusEnded() in
the shortcut evaluation. This fixes bug #531. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18338 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3015,6 +3015,8 @@ BWindow::_HandleKeyDown(char key, uint32 modifiers)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenusBeginning();
|
||||||
|
|
||||||
Shortcut* shortcut = _FindShortcut(key, modifiers);
|
Shortcut* shortcut = _FindShortcut(key, modifiers);
|
||||||
if (shortcut != NULL) {
|
if (shortcut != NULL) {
|
||||||
// TODO: would be nice to move this functionality to
|
// TODO: would be nice to move this functionality to
|
||||||
@@ -3043,9 +3045,10 @@ BWindow::_HandleKeyDown(char key, uint32 modifiers)
|
|||||||
PostMessage(&message, target);
|
PostMessage(&message, target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenusEnded();
|
||||||
|
|
||||||
// we always eat the event if the command key was pressed
|
// we always eat the event if the command key was pressed
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user