feat: shortcuts for zoom in and out
This also fix maximize shortcut on Windows.
This commit is contained in:
1 parent
858c9e0ccf
commit
50170eb4aa
2 files changed
+6
-2
No files matched your search
@@ -57,10 +57,11 @@ void ActionManager::retranslateUi(MainWindow *mainWindow)
|
||||
|
||||
void ActionManager::setupShortcuts()
|
||||
{
|
||||
actionZoomIn->setShortcut(QKeySequence(QKeySequence::ZoomIn));
|
||||
actionZoomOut->setShortcut(QKeySequence(QKeySequence::ZoomOut));
|
||||
actionQuitApp->setShortcuts({
|
||||
QKeySequence(Qt::Key_Space),
|
||||
QKeySequence(Qt::Key_Escape)
|
||||
});
|
||||
actionQuitApp->setShortcutContext(Qt::ApplicationShortcut);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user