From 7685c273d6684470778629499e270908c8a55243 Mon Sep 17 00:00:00 2001 From: easymodo Date: Thu, 20 Jun 2024 18:22:11 +0300 Subject: [PATCH] update zooming shortcuts #546 number row +/- keys should now both work, as well as ctrl+ / ctrl- --- qimgv/components/actionmanager/actionmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qimgv/components/actionmanager/actionmanager.cpp b/qimgv/components/actionmanager/actionmanager.cpp index 9dd8b2f5..a9a80f95 100644 --- a/qimgv/components/actionmanager/actionmanager.cpp +++ b/qimgv/components/actionmanager/actionmanager.cpp @@ -40,8 +40,12 @@ void ActionManager::initDefaults() { actionManager->defaults.insert(InputMap::keyNameCtrl() + "+L", "rotateLeft"); actionManager->defaults.insert(InputMap::keyNameCtrl() + "+WheelUp", "zoomInCursor"); actionManager->defaults.insert(InputMap::keyNameCtrl() + "+WheelDown", "zoomOutCursor"); + actionManager->defaults.insert("=", "zoomIn"); // [=+] key on the number row + actionManager->defaults.insert(InputMap::keyNameCtrl() + "=", "zoomIn"); actionManager->defaults.insert("+", "zoomIn"); + actionManager->defaults.insert(InputMap::keyNameCtrl() + "+", "zoomIn"); actionManager->defaults.insert("-", "zoomOut"); + actionManager->defaults.insert(InputMap::keyNameCtrl() + "-", "zoomOut"); actionManager->defaults.insert(InputMap::keyNameCtrl() + "+Down", "zoomOut"); actionManager->defaults.insert(InputMap::keyNameCtrl() + "+Up", "zoomIn"); actionManager->defaults.insert("Up", "scrollUp");