-
Notifications
You must be signed in to change notification settings - Fork 37.8k
qt: Enable tabbing through labels #14810
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
Conversation
Concept ACK, thanks!
…On Mon, Nov 26, 2018, 17:21 Hennadii Stepanov ***@***.*** wrote:
Inspired by @laanwj <https://github.com/laanwj>'s #14577 (comment)
<#14577 (comment)>
This PR improves UX by enabling moving focus through QLabel fields using
keyboard (*Tab* and *Shift+Tab* as usual).
On the way this PR fixes a visual bug described in #14577
<#14577> and improves UX for help
windows.
cc: @promag <https://github.com/promag> @fanquake
<https://github.com/fanquake> @jonasschnelli
<https://github.com/jonasschnelli>
------------------------------
You can view, comment on, or merge this pull request online at:
#14810
Commit Summary
- Add event filter for focused QLabel objects
- Enable tabbing through labels for Debug Window
- Enable tabbing through labels for Overview view
- Improve UX for help dialogs
- Enable tabbing through labels for Send view
- Enable tabbing through labels for Coin Selection
File Changes
- *M* src/qt/bitcoin.cpp
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-0> (2)
- *M* src/qt/forms/coincontroldialog.ui
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-1> (55)
- *M* src/qt/forms/debugwindow.ui
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-2> (192)
- *M* src/qt/forms/helpmessagedialog.ui
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-3> (11)
- *M* src/qt/forms/overviewpage.ui
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-4> (60)
- *M* src/qt/forms/sendcoinsdialog.ui
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-5> (48)
- *M* src/qt/guiutil.cpp
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-6> (21)
- *M* src/qt/guiutil.h
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-7> (19)
- *M* src/qt/overviewpage.cpp
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-8> (6)
- *M* src/qt/overviewpage.h
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-9> (1)
- *M* src/qt/rpcconsole.cpp
<https://github.com/bitcoin/bitcoin/pull/14810/files#diff-10> (3)
Patch Links:
- https://github.com/bitcoin/bitcoin/pull/14810.patch
- https://github.com/bitcoin/bitcoin/pull/14810.diff
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14810>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHutqZNtoB4ikOhZ9AnLhCNU6b3U0-Yks5uzBUegaJpZM4YzXb1>
.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
The only downside with this is, that you can't select parts of the text of a label. |
@jonasschnelli Yeah. Possibly we're getting too deep in shed-painting territory here. I'll leave the decision what to do here up to you. |
More opinions, tests would be welcome. |
That has been made intentionally. |
1223621
to
98a7271
Compare
98a7271
to
ba5fc32
Compare
Rebased. |
@hebasto sure, on my list now. |
Concept ACK. Unfortunately this is a bit difficult to fully test on macOS because the menu keyboard shortcuts don't work (#13832), so you need the mouse for most navigation anyway. I'm confused why I was already able to navigate through the peer list. Now with this change I can select and copy individual items. When I tab through the Send screen, it only goes through Pay to, label, amount, [nothing] and then the balance field. On the receive screen it skips the BTC dropdown field, the payment request button and the erase button. I can go through the list of historical payment request, but I can't access their view and delete buttons. On the transactions page I can't access the the three filter dropdowns (on the left), and also not the Export button. I also can't reach the wallet switcher. |
@Sjors Thank you for your review and valuable input.
Yes, it is an accessibility feature mostly. Ref: #14577 (comment). All others points will be addressed soon. |
In that case, is there a way to trigger the tooltip by keyboard too? |
Just wondering if changing to |
BTW I've noticed that #12616 no longer works. |
Tested this again and the lack of ability to select parts of an amount label (say the amount without the unit |
ba5fc32
to
8b6a472
Compare
This approach does not work for me (background color issues), see #17898.
Fixed in the latest push.
Fixed in the latest push. |
The OP has been updated. |
It seems possible. This could be addresses in a follow up PR ;) |
8b6a472
to
d356340
Compare
Invariants are forced by |
@jonasschnelli Mind re-reviewing? |
d356340
to
1bd1e60
Compare
Rebased d356340 -> 1bd1e60 (pr14810.101 -> pr14810.102) due to the conflict with #18402. |
This fix is replaced by #19210.
I have some ideas how to get the keyboard-only UX but not going to work on it right now. Please label it "Up for grabs" :) |
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - #14577 - #14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - bitcoin#14577 - bitcoin#14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - bitcoin#14577 - bitcoin#14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3
bd315eb qt: Get rid of cursor in out-of-focus labels (Hennadii Stepanov) Pull request description: After clicking on `QLabel` with selectable text the cursor remains forever:  This PR fixes this visual bug. Earlier attempts to fix this issue: - bitcoin#14577 - bitcoin#14810 (combined with other UX feature) ACKs for top commit: promag: Code review ACK bd315eb. laanwj: Tested ACK bd315eb Tree-SHA512: 6bf89362412e5ce9a4dec6944b62fe44fc31ca49cda7f6e2eb37e847fac9dccb68bca7ac6877b19e42add2333e40d0b4265757ead105ac0a5d28f8ab43b322c3
This PR:
textInteractionFlags
forQLabel
#14577textInteractionFlags
forQLabel
#14577 (comment)Also applied a style-fix from #15220: