From c44a712e5a781feb6f6bbc064c505d8cffa867ee Mon Sep 17 00:00:00 2001 From: Roman Vladimirov Date: Thu, 28 Dec 2023 22:51:56 +0300 Subject: [PATCH] - Remove ctrl-h on macos * Replace Ctrl-Tab on Ctrl-T on macOS --- src/ViewModels/backendviewmodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ViewModels/backendviewmodel.cpp b/src/ViewModels/backendviewmodel.cpp index 9ad73bd..03fa714 100644 --- a/src/ViewModels/backendviewmodel.cpp +++ b/src/ViewModels/backendviewmodel.cpp @@ -333,7 +333,11 @@ void BackendViewModel::fillAuthorizationSecurity(const QString &key, HttpRequest void BackendViewModel::fillMappings() { +#ifdef Q_OS_MACOS + m_shortcutCommandMapping.insert("control-t", m_changeSelectedQueryCommand); +#else m_shortcutCommandMapping.insert("control-tab", m_changeSelectedQueryCommand); +#endif m_shortcutCommandMapping.insert("control-backspace", m_changeSelectedQueryCommand); m_shortcutCommandMapping.insert("control-m", m_performQueriesMultipleCommand); m_shortcutCommandMapping.insert("control-z", m_performQueryCommand); @@ -342,7 +346,9 @@ void BackendViewModel::fillMappings() m_shortcutCommandMapping.insert("f4", m_cancelQueryCommand); m_shortcutCommandMapping.insert("control-s", m_saveToClipboardCommand); m_shortcutCommandMapping.insert("f10", m_saveToClipboardCommand); +#ifndef Q_OS_MACOS m_shortcutCommandMapping.insert("control-h", m_helpCommand); +#endif m_shortcutCommandMapping.insert("f1", m_helpCommand); m_shortcutCommandMapping.insert("shift-alt-l", m_replaceFromClipboardCommand); m_shortcutCommandMapping.insert("control-l", m_appendFromClipboardCommand);