Add new action to create a new instance of the viewer in macos

This commit is contained in:
Luis Ángel San Martín
2019-09-28 16:55:28 +02:00
parent f65395c11d
commit 1f8be886ec
4 changed files with 35 additions and 1 deletions

View File

@ -74,6 +74,10 @@ void ShortcutsManager::initDefaultShorcuts()
defaultShorcuts.insert(ZOOM_IN_MGLASS_ACTION_Y, Qt::Key_Asterisk);
defaultShorcuts.insert(ZOOM_OUT_MGLASS_ACTION_Y, Qt::Key_Underscore);
#ifdef Q_OS_MAC
defaultShorcuts.insert(NEW_INSTANCE_ACTION_Y, Qt::Key_N);
#endif
#endif
}

View File

@ -85,6 +85,7 @@ public:
//ACTION NAMES YACReader
#define OPEN_ACTION_Y "OPEN_ACTION_Y"
#define NEW_INSTANCE_ACTION_Y "NEW_INSTANCE_ACTION_Y"
#define OPEN_FOLDER_ACTION_Y "OPEN_FOLDER_ACTION_Y"
#define SAVE_IMAGE_ACTION_Y "SAVE_IMAGE_ACTION_Y"
#define OPEN_PREVIOUS_COMIC_ACTION_Y "OPEN_PREVIOUS_COMIC_ACTION_Y"