Skip to content

Commit

Permalink
- Remove ctrl-h on macos
Browse files Browse the repository at this point in the history
* Replace Ctrl-Tab on Ctrl-T on macOS
  • Loading branch information
trueromanus committed Dec 28, 2023
1 parent 6e67758 commit c44a712
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ViewModels/backendviewmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit c44a712

Please sign in to comment.