Commit 2958b0ba authored by con's avatar con
Browse files

Cmd+0 is already taken for hiding the navigation sidebar.

parent 6237bbb4
...@@ -243,7 +243,9 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error) ...@@ -243,7 +243,9 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
action = new QAction(tr("Reset Font Size"), this); action = new QAction(tr("Reset Font Size"), this);
cmd = am->registerAction(action, TextEditor::Constants::RESET_FONT_SIZE, cmd = am->registerAction(action, TextEditor::Constants::RESET_FONT_SIZE,
modecontext); modecontext);
#ifndef Q_WS_MAC
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+0"))); cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+0")));
#endif
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(resetZoom())); connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(resetZoom()));
advancedMenu->addAction(cmd, Core::Constants::G_EDIT_FONT); advancedMenu->addAction(cmd, Core::Constants::G_EDIT_FONT);
} }
......
...@@ -229,7 +229,9 @@ void TextEditorActionHandler::createActions() ...@@ -229,7 +229,9 @@ void TextEditorActionHandler::createActions()
m_resetFontSizeAction = new QAction(tr("Reset Font Size"), this); m_resetFontSizeAction = new QAction(tr("Reset Font Size"), this);
command = am->registerAction(m_resetFontSizeAction, Constants::RESET_FONT_SIZE, m_contextId); command = am->registerAction(m_resetFontSizeAction, Constants::RESET_FONT_SIZE, m_contextId);
#ifndef Q_WS_MAC
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+0"))); command->setDefaultKeySequence(QKeySequence(tr("Ctrl+0")));
#endif
connect(m_resetFontSizeAction, SIGNAL(triggered()), this, SLOT(resetFontSize())); connect(m_resetFontSizeAction, SIGNAL(triggered()), this, SLOT(resetFontSize()));
advancedMenu->addAction(command, Core::Constants::G_EDIT_FONT); advancedMenu->addAction(command, Core::Constants::G_EDIT_FONT);
......
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