Skip to content

Commit

Permalink
Really ugly temporary hack to get Menu to display "Alt" instead of "C…
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Oct 11, 2021
1 parent 7e9c4e0 commit 2e95f8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/appmenu/dbusmenushortcut_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ QKeySequence DBusMenuShortcut::toKeySequence() const
Q_FOREACH(const QStringList& keyTokens_, *this) {
QStringList keyTokens = keyTokens_;
processKeyTokens(&keyTokens, DM_COLUMN, QT_COLUMN);
keyTokens[0].replace("Alt", "_A_L_T_"); // probono: Really ugly hack. FIXME: Implement in QtPlugin rather than in Menu
keyTokens[0].replace("Ctrl", "Alt"); // probono: Really ugly hack. FIXME: Implement in QtPlugin rather than in Menu
keyTokens[0].replace("_A_L_T_", "Ctrl"); // probono: Really ugly hack. FIXME: Implement in QtPlugin rather than in Menu
tmp << keyTokens.join(QLatin1String("+"));
}
QString string = tmp.join(QLatin1String(", "));
Expand Down

0 comments on commit 2e95f8c

Please sign in to comment.