On master
the only way to resize the console font is to manually move your mouse and click the resize buttons. This PR introduces convenient keyboard shortcuts to resize the console font.
The common resize shortcuts for applications are Ctrl+=
/Ctrl++
and Ctrl+-
/Ctrl+_
. This means that the resize QPushButtons need two shortcuts each, but you cannot assign multiple shortcuts to a QPushButton. See: https://doc.qt.io/qt-5/qabstractbutton.html#shortcut-prop
To get around this, we introduce a new function in guiutil
, which connects a supplied QKeySequence
shortcut to a QAbstractButton
. This function can be reused in other situations where more than one shortcut is needed for a button.
PR on macOS | PR on Linux |
---|---|