From 7a87c4cd4bd880558b6beb9a8c87c9f9a884fb6a Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Mon, 23 Oct 2017 17:33:00 +0200 Subject: [PATCH] ui: Added shortcut to 'Show in IDE' context menu action (issue #485) --- src/lib_gui/qt/element/QtCodeArea.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib_gui/qt/element/QtCodeArea.cpp b/src/lib_gui/qt/element/QtCodeArea.cpp index 2fcf4389..402804b9 100644 --- a/src/lib_gui/qt/element/QtCodeArea.cpp +++ b/src/lib_gui/qt/element/QtCodeArea.cpp @@ -703,7 +703,10 @@ void QtCodeArea::annotateText() void QtCodeArea::createActions() { - m_setIDECursorPositionAction = new QAction(tr("Set IDE Cursor"), this); + m_setIDECursorPositionAction = new QAction(tr("Show in IDE (Ctrl + Left Click)"), this); +#if defined(Q_OS_MAC) + m_setIDECursorPositionAction->setText(tr("Show in IDE (Cmd + Left Click)")); +#endif m_setIDECursorPositionAction->setStatusTip(tr("Set the IDE Cursor to this code position")); m_setIDECursorPositionAction->setToolTip(tr("Set the IDE Cursor to this code position")); connect(m_setIDECursorPositionAction, &QAction::triggered, this, &QtCodeArea::setIDECursorPosition);