From 49053e86aa61a359a15eda0e67b4fa2c293122e0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 3 Jun 2014 15:28:06 -0700 Subject: Make most of the shortcuts widget specific Having the window specific means that you can't have a key do different things on different widgets. Signed-off-by: Dirk Hohndel --- qt-ui/usermanual.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/usermanual.cpp') diff --git a/qt-ui/usermanual.cpp b/qt-ui/usermanual.cpp index 60c94382f..82691594c 100644 --- a/qt-ui/usermanual.cpp +++ b/qt-ui/usermanual.cpp @@ -18,12 +18,12 @@ UserManual::UserManual(QWidget *parent) : QMainWindow(parent), QAction *actionShowSearch = new QAction(this); actionShowSearch->setShortcut(Qt::CTRL + Qt::Key_F); - actionShowSearch->setShortcutContext(Qt::WindowShortcut); + actionShowSearch->setShortcutContext(Qt::WidgetShortcut); addAction(actionShowSearch); QAction *actionHideSearch = new QAction(this); actionHideSearch->setShortcut(Qt::Key_Escape); - actionHideSearch->setShortcutContext(Qt::WindowShortcut); + actionHideSearch->setShortcutContext(Qt::WidgetShortcut); addAction(actionHideSearch); setWindowTitle(tr("User Manual")); -- cgit v1.2.3-70-g09d2