Skip to content

Commit 4ee9ee7

Browse files
hebastojarolrod
authored andcommitted
qt: Use native presentation of shortcut
1 parent a1f0b8b commit 4ee9ee7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/qt/rpcconsole.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -816,14 +816,8 @@ void RPCConsole::clear(bool clearHistory)
816816
).arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize))
817817
);
818818

819-
#ifdef Q_OS_MAC
820-
QString clsKey = "(⌘)-L";
821-
#else
822-
QString clsKey = "Ctrl-L";
823-
#endif
824-
825819
message(CMD_REPLY, (tr("Welcome to the %1 RPC console.").arg(PACKAGE_NAME) + "<br>" +
826-
tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg("<b>"+clsKey+"</b>") + "<br>" +
820+
tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg("<b>" + ui->clearButton->shortcut().toString(QKeySequence::NativeText) + "</b>") + "<br>" +
827821
tr("Type %1 for an overview of available commands.").arg("<b>help</b>") + "<br>" +
828822
tr("For more information on using this console type %1.").arg("<b>help-console</b>") +
829823
"<br><span class=\"secwarning\"><br>" +

0 commit comments

Comments
 (0)