summaryrefslogtreecommitdiffstats
path: root/qt-ui/usermanual.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 15:28:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 15:30:27 -0700
commit49053e86aa61a359a15eda0e67b4fa2c293122e0 (patch)
treea5111d6868fba2eb7738923e46ad4764f986d7e5 /qt-ui/usermanual.cpp
parent2cfa7fead0b1ea351b5c738785ce5c54248a4888 (diff)
downloadsubsurface-49053e86aa61a359a15eda0e67b4fa2c293122e0.tar.gz
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 <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 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"));