Skip to content

Commit

Permalink
issue #2739: Mac users must Command click instead of Ctrl click multi…
Browse files Browse the repository at this point in the history
…ple elements.
  • Loading branch information
wwmayer committed Jan 11, 2017
1 parent 675bcc2 commit c2f2a25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/Sketcher/Gui/TaskSketcherElements.cpp
Expand Up @@ -27,6 +27,7 @@
# include <QContextMenuEvent>
# include <QMenu>
# include <QRegExp>
# include <QShortcut>
# include <QString>
#endif

Expand Down Expand Up @@ -249,7 +250,10 @@ TaskSketcherElements::TaskSketcherElements(ViewProviderSketch *sketchView)
#ifdef Q_OS_MAC
QString cmdKey = QString::fromUtf8("\xe2\x8c\x98"); // U+2318
#else
QString cmdKey = qApp->translate("QShortcut", "Ctrl");
// translate the text (it's offered by Qt's translation files)
// but avoid being picked up by lupdate
const char* ctrlKey = "Ctrl";
QString cmdKey = QShortcut::tr(ctrlKey);
#endif
QString zKey = QString::fromLatin1("Z");
ui->Explanation->setText(tr("<html><head/><body><p>&quot;%1&quot;: multiple selection</p>"
Expand Down

0 comments on commit c2f2a25

Please sign in to comment.