Skip to content

Commit 012fa9b

Browse files
Add OSX keystroke to clear RPCConsole
Currently only Ctrl-L is mentioned in help, but, (⌘)-L functions on OSX and isn't mentioned.
1 parent 6a796b2 commit 012fa9b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/qt/rpcconsole.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,14 @@ void RPCConsole::clear(bool clearHistory)
730730
).arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize))
731731
);
732732

733+
#ifdef Q_OS_MAC
734+
QString clsKey = "(⌘)-L";
735+
#else
736+
QString clsKey = "Ctrl-L";
737+
#endif
738+
733739
message(CMD_REPLY, (tr("Welcome to the %1 RPC console.").arg(tr(PACKAGE_NAME)) + "<br>" +
734-
tr("Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.") + "<br>" +
740+
tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg("<b>"+clsKey+"</b>") + "<br>" +
735741
tr("Type <b>help</b> for an overview of available commands.")) +
736742
"<br><span class=\"secwarning\">" +
737743
tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramification of a command.") +

0 commit comments

Comments
 (0)