From 4ee9ee72363d46c5ba0c71b8d8283d9c5621e3ed Mon Sep 17 00:00:00 2001
From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Date: Sun, 18 Apr 2021 15:17:38 +0300
Subject: [PATCH] qt: Use native presentation of shortcut
---
src/qt/rpcconsole.cpp | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 34d055e5a5358..2e29992c0e2ef 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -816,14 +816,8 @@ void RPCConsole::clear(bool clearHistory)
).arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize))
);
-#ifdef Q_OS_MAC
- QString clsKey = "(⌘)-L";
-#else
- QString clsKey = "Ctrl-L";
-#endif
-
message(CMD_REPLY, (tr("Welcome to the %1 RPC console.").arg(PACKAGE_NAME) + "
" +
- tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg(""+clsKey+"") + "
" +
+ tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg("" + ui->clearButton->shortcut().toString(QKeySequence::NativeText) + "") + "
" +
tr("Type %1 for an overview of available commands.").arg("help") + "
" +
tr("For more information on using this console type %1.").arg("help-console") +
"
" +