forked from qt-creator/qt-creator
Fix Toggle Right Sidebar shortcut on Windows
Ctrl+0 is used for the left sidebar on Mac, so it should be save to use it for the right sidebar on Linux/Windows. The original shortcut (Ctrl+Shift+0) is used by Windows 10 and therefore does not work. Task-number: QTCREATORBUG-17857 Change-Id: I832135c3779508b9789b5be4757e1bbc9bd255eb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Alessandro Portale
parent
399a1c9c7d
commit
c50fbf2450
@@ -710,7 +710,7 @@ void MainWindow::registerDefaultActions()
|
||||
m_toggleRightSideBarAction->setCheckable(true);
|
||||
cmd = ActionManager::registerAction(m_toggleRightSideBarAction, Constants::TOGGLE_RIGHT_SIDEBAR);
|
||||
cmd->setAttribute(Command::CA_UpdateText);
|
||||
cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Ctrl+Meta+0") : tr("Ctrl+Shift+0")));
|
||||
cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Ctrl+Meta+0") : tr("Ctrl+0")));
|
||||
connect(m_toggleRightSideBarAction, &QAction::triggered,
|
||||
this, [this](bool visible) { setSidebarVisible(visible, Side::Right); });
|
||||
ProxyAction *toggleRightSideBarProxyAction =
|
||||
|
||||
Reference in New Issue
Block a user