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>
This commit is contained in:
Dirk Hohndel 2014-06-03 15:28:06 -07:00
parent 2cfa7fead0
commit 49053e86aa
3 changed files with 8 additions and 6 deletions

View file

@ -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"));