-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GUI] Accept dialogs with ENTER, reject with ESC #1392
[GUI] Accept dialogs with ENTER, reject with ESC #1392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good QOL improvement.
utACK d88eaef
e412ce2
to
b746e54
Compare
Alternative implementation to the Tested changes patch (did it only over one dialog, can easily be applied to -squashed into- each of the previous commits):
|
Throw a generic GUI exception if it is called on non-confirmation dialogs
b746e54
to
37e73fe
Compare
Applied @furszy's patch to TxDetail and Default dialogs. Squashed / rebased on master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 37e73fe
… ESC 37e73fe [Doc] Add GUI dailogs keyboard navigation to the release notes (random-zebra) 52157ce [GUI] Guard access to TxDetailDialog::acceptTx (random-zebra) 7ec6c13 [GUI] Set focus in DefaultDialog and detect Enter/Esc (random-zebra) 436fea2 [GUI] Set focus in TxDetailDialog and detect Enter/Esc (random-zebra) Pull request description: Ref: PIVX-Project#1163 (review) Completes the ability to accept/dismiss modal dialogs with the keyboard, including: - confirmation dialogs (`DefaultDialog`) - tx detail / tx confirmation dialogs (`TxDetailDialog`) ACKs for top commit: furszy: ACK 37e73fe Tree-SHA512: 0d0771e8b9891a5d3555c835564feadee2dd4f9d23b0733361e9279448f559eee1865369693d428e210c40f48ad80c544f757c4ec01cdf6f7f57a999e3e2a056
26b5dc2 [GUI][Refactor] Dismiss dialogs with QDialog::reject vs QWidget::close (random-zebra) 7cb8107 [GUI] Make more dialogs inherit from FocusedDialog (random-zebra) 9acda36 [GUI] Make DefaultDialog and TxDetailDialog child of FocusedDialog (random-zebra) bc579f7 [GUI] Introduce FocusedDialog generic class (random-zebra) Pull request description: This creates a generic extension of QDialog, named `FocusedDialog`, with the property of having the focus on show and filtering key press events to call `accept()` with ENTER/RETURN and `close()` with ESC (ref: #1392). Removes code duplication in `DefaultDialog` and `TxDetailDialog` by making them child classes of FocusedDialog. Also add this ability to other dialogs as well: - `AddNewContactDialog` (closes #1606) - `MasterNodeWizardDialog` - `MnInfoDialog` - `ReceiveDialog` - `RequestDialog` - `SendChangeAddressDialog` - `SendCustomFeeDialog` ACKs for top commit: Fuzzbawls: ACK 26b5dc2 furszy: Tested ACK 26b5dc2 and merging. Tree-SHA512: 43a8f74969a55e5c9f9119721f94f54b33ba44291c6e06e7603f63fb4d1a959fce8cf17e6e63811e2b550ce0c62e06d5831acdc279de20fe914c97a71c0638d3
Ref: #1163 (review)
Completes the ability to accept/dismiss modal dialogs with the keyboard, including:
DefaultDialog
)TxDetailDialog
)