summaryrefslogtreecommitdiffstats
path: root/qt-ui/usermanual.cpp
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2014-06-25 16:07:02 +0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-25 21:41:58 +0800
commit5b5a25db780187ed34a9388a4b111bb44c1ce548 (patch)
treecd35da84d42bcd95ae923f94f002b9e20c8f27d3 /qt-ui/usermanual.cpp
parent7f3efbdc98deeb4e4bcd481335761b6439b9552c (diff)
downloadsubsurface-5b5a25db780187ed34a9388a4b111bb44c1ce548.tar.gz
Fix keyboard shortcuts for user manual
Shortcuts for widgets without focus should have window context. Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/usermanual.cpp')
-rw-r--r--qt-ui/usermanual.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/usermanual.cpp b/qt-ui/usermanual.cpp
index 0f3167823..a57717a49 100644
--- a/qt-ui/usermanual.cpp
+++ b/qt-ui/usermanual.cpp
@@ -20,12 +20,12 @@ UserManual::UserManual(QWidget *parent) : QMainWindow(parent),
QAction *actionShowSearch = new QAction(this);
actionShowSearch->setShortcut(Qt::CTRL + Qt::Key_F);
- actionShowSearch->setShortcutContext(Qt::WidgetShortcut);
+ actionShowSearch->setShortcutContext(Qt::WindowShortcut);
addAction(actionShowSearch);
QAction *actionHideSearch = new QAction(this);
actionHideSearch->setShortcut(Qt::Key_Escape);
- actionHideSearch->setShortcutContext(Qt::WidgetShortcut);
+ actionHideSearch->setShortcutContext(Qt::WindowShortcut);
addAction(actionHideSearch);
setWindowTitle(tr("User Manual"));