From c50fbf24500f8c7c9911b224e813f1d31611f563 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 4 Apr 2017 14:49:15 +0200 Subject: [PATCH] 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 --- src/plugins/coreplugin/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index 71e1f9a5a93..f587f0cc369 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -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 =