Skip to content

Commit 36ded99

Browse files
committed
Merge #17998: gui: Shortcut to close ModalOverlay
1a638e1 gui: Shortcut to close ModalOverlay (Emil Engler) Pull request description: This adds the shortcut `Esc` to hide the ModalOverlay. The motivation is that it is annoying to always move the cursor to "Hide" when quickly testing something in the GUI with an outdated chain. ACKs for top commit: kristapsk: ACK 1a638e1. Agree with @promag, Esc feels more natural than Enter here. jonasschnelli: ACK 1a638e1 Tree-SHA512: ea764349ec145ce9a34cbc66c3ac0eace9233a3fb3e9c22694a77882478afa22d4e686ce2c1d7b3938f6769f96ba995577b0216ba9d98954dcf3e55d2187f2e0
2 parents b4f832e + 1a638e1 commit 36ded99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/forms/modaloverlay.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ QLabel { color: rgb(40,40,40); }</string>
351351
<property name="text">
352352
<string>Hide</string>
353353
</property>
354+
<property name="shortcut">
355+
<string>Esc</string>
356+
</property>
354357
<property name="focusPolicy">
355358
<enum>Qt::StrongFocus</enum>
356359
</property>

0 commit comments

Comments
 (0)