mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
2cfa7fead0
commit
49053e86aa
3 changed files with 8 additions and 6 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue