Skip to content

Commit

Permalink
chore: shortcut-related code tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Nov 2, 2024
1 parent 2071e82 commit d0bdc71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/actionmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ void ActionManager::retranslateUi(MainWindow *mainWindow)

void ActionManager::setupShortcuts()
{
actionOpen->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_O));
actionOpen->setShortcut(QKeySequence::Open);
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
actionZoomIn->setShortcut(QKeySequence(QKeySequence::ZoomIn));
actionZoomOut->setShortcut(QKeySequence(QKeySequence::ZoomOut));
actionZoomIn->setShortcut(QKeySequence::ZoomIn);
actionZoomOut->setShortcut(QKeySequence::ZoomOut);
actionPrevPicture->setShortcuts({
QKeySequence(Qt::Key_PageUp),
QKeySequence(Qt::Key_Left),
Expand All @@ -143,7 +143,7 @@ void ActionManager::setupShortcuts()
QKeySequence(Qt::Key_Right),
});
actionHorizontalFlip->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_R));
actionCopyPixmap->setShortcut(QKeySequence(QKeySequence::Copy));
actionCopyPixmap->setShortcut(QKeySequence::Copy);
actionPaste->setShortcut(QKeySequence::Paste);
actionTrash->setShortcut(QKeySequence::Delete);
actionHelp->setShortcut(QKeySequence::HelpContents);
Expand Down

0 comments on commit d0bdc71

Please sign in to comment.