Commit 47fcb86a authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Change the close window action to Ctrl+F4 on Windows

Those who do not like it can get the old behavior back by
setting the action to Ctrl+W in the shortcut settings.

Fixes: QTCREATORBUG-767
parent a0faeb73
...@@ -270,7 +270,11 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) : ...@@ -270,7 +270,11 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) :
//Close Action //Close Action
cmd = am->registerAction(m_d->m_closeCurrentEditorAction, Constants::CLOSE, editManagerContext); cmd = am->registerAction(m_d->m_closeCurrentEditorAction, Constants::CLOSE, editManagerContext);
#ifdef Q_WS_WIN
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+F4")));
#else
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+W"))); cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+W")));
#endif
cmd->setAttribute(Core::Command::CA_UpdateText); cmd->setAttribute(Core::Command::CA_UpdateText);
cmd->setDefaultText(m_d->m_closeCurrentEditorAction->text()); cmd->setDefaultText(m_d->m_closeCurrentEditorAction->text());
mfile->addAction(cmd, Constants::G_FILE_CLOSE); mfile->addAction(cmd, Constants::G_FILE_CLOSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment