Fix keyboard shortcuts when menu bar is hidden. Patch by Robin Stocker. Affects other KDE applications as well. See discussion on konsole-devel - http://lists.kde.org/?l=konsole-devel&m=118529209602516&w=2

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691938
This commit is contained in:
Robert Knight
2007-07-24 17:10:36 +00:00
parent c88bf4bc48
commit d30833dac7
3 changed files with 17 additions and 2 deletions

View File

@@ -87,6 +87,16 @@ SessionController::SessionController(Session* session , TerminalDisplay* view, Q
setXMLFile("konsole/sessionui.rc");
setupActions();
// add all actions to this window, so that the keyboard shortcuts can be
// used even when the main window's menu is hidden
//
// TODO: The Qt-4 behaviour of shortcuts not working when the menu bar is hidden
// affects other KDE applications as well. A kdelibs fix might be possible.
//
// See discussion:
// http://lists.kde.org/?l=konsole-devel&m=118529209602516&w=2
view->addActions(actionCollection()->actions());
setIdentifier(_session->sessionId());
sessionTitleChanged();