mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
7f3efbdc98
commit
5b5a25db78
1 changed files with 2 additions and 2 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Reference in a new issue