Skip to content

Fix shortcut ambiguities - #633

Closed
shaavan wants to merge 2 commits into
bitcoin-core:masterfrom
shaavan:220720-issue-126
Closed

shaavan wants to merge 2 commits into
bitcoin-core:masterfrom
shaavan:220720-issue-126

Conversation

@shaavan

@shaavan shaavan commented Jul 21, 2022 •

Copy link
Copy Markdown
Contributor

Picks up #129
fixes #126

  • This PR addresses and fixes the shortcut collisions.
  • This PR takes reference from this commit.

Changes done in this PR:

Option whose shortcut is changed From -> To To avoid collision with
Size of database cache D -> I Display tab
Enable coin control C -> a Cancel option
Connect through SOCKS5 proxy C -> S Cancel option
Minimize to tray instead of taskbar M -> T Main tab

Also, this PR address this comment in #129, which was suggested to add with the original PR.

"Third party transaction URLs" string could be ended with :

- This commit fixes shortcut ambiguity by getting rid of shortcut
  collisions.
@shaavan

shaavan commented Jul 23, 2022

Copy link
Copy Markdown
Contributor Author

Updated from f77451c -> dd536e9 (pr633.01 -> pr633.02, diff)

Changes:

  • Added another commit that changes the shortcut for the Close option from l -> C without introducing shortcut collisions.

The reasoning for the change:

  • Close action is marked with shortcut c everywhere else in the GUI.
  • c is a more intuitive shortcut for Close action than l.
  • There is no shortcut conflict introduced with this change.

Comment thread src/qt/forms/optionsdialog.ui Resolved
@shaavan

shaavan commented Aug 1, 2022

Copy link
Copy Markdown
Contributor Author

Updated from dd536e9 to cfe407c (pr633.02 -> pr633.03, diff)

Addressed @jarolrod comment

  • Changed Enable coin control features shortcut from i to a.

The reasoning for this change is explained here.

@jarolrod jarolrod left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be noted that this is picking up #129, and should look at the discussion had there especially the feedback.

The second commit despite stating that "there are no shortcut conflict introduced with this change", in fact introduces a new collision between the Close and Copy button.

I have gone through all of the shortcuts and can confirm there are no more besides the ones mentioned in this review.

Comment thread src/qt/forms/optionsdialog.ui Outdated
</property>
<property name="text">
<string>Enable coin &amp;control features</string>
<string>En&amp;able coin control features</string>

@jarolrod jarolrod Aug 6, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you've introduced a new ambiguity within this file, now this option collides with the shortcut to switch to the Window tab within the Options Window. If you test this new shortcut, the Enable Coin Control features option will not actuate.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Jarol, for catching this!

I have reverted to the original change done for this option in this PR.
Addressed in 5fde8fb.

@shaavan

shaavan commented Aug 13, 2022

Copy link
Copy Markdown
Contributor Author

Updated from cfe407c to 5fde8fb (pr633.03 -> pr633.04, diff)

Addressed @jarolrod comment

  • Reverted to pr633.01. Corresponding changes include:
    • Changed Enable coin control features shortcut from a to i.
    • Changes shortcut of close option from C to l.
  • Added a commit to addressing this comment in PR Fix Shortcut Ambiguities, Clean up text #129 from which this PR is picked.

Thank you very much, Jarol, for your thorough review!

@hebasto hebasto changed the title qt: Fix shortcut ambiguities Fix shortcut ambiguities Aug 15, 2022

@luke-jr luke-jr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 5fde8fb, but PR description needs to be updated

@pablomartin4btc pablomartin4btc left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK.

I've reproduced the issue and verified the collisions on the Options window (from main menu "Settings" item "Options") between the shorcuts (alt+?) for the 4 elements across the different tabs and the shorcuts to navigate through the different tabs and/ or the "Cancel" button at right side at the bottom.

After compiling the fix 5fde8fb, I've verified that there's no collisions and the shortcuts work as expected.

image

I've pasted the screenshot above just as a reference and to show some of the shortcuts.

I've also added a "Where" column at the table that was provided at the top description to make it clearer.

Option whose shortcut is changed Where From -> To To avoid collision with
Size of database cache Main tab D -> I Display tab
Enable coin control Wallet tab C -> a Cancel option
Connect through SOCKS5 proxy Network tab C -> S Cancel option
Minimize to tray instead of taskbar Window tab M -> T Main tab

@pablomartin4btc

Copy link
Copy Markdown
Contributor

Since we are here, shouldn't we add a shortcut for the "Options" window under the "Settings" menu? Like Ctrl+O or Ctrl+Shift+O?

image

Another kind of unrelated comment but it's related somehow with one of the options ("Minimize on close" on Window tab) and the Ctrl+W shortcut. After playing a bit with some shortcuts and accidentally closing the app with Ctrl+W (Ctrl+Q is the shortcut to close the app specified on the File menu), I found this was worked out on 15768, shouldn't be this "Minimize on close" be ticked by default?

@hebasto

hebasto commented Oct 26, 2022

Copy link
Copy Markdown
Member

Maybe start from catching QShortcut::activatedAmbiguously() signals? It would help to test this PR, and translated GUI and future changes as well.

@hebasto

hebasto commented Mar 27, 2023

Copy link
Copy Markdown
Member

@shaavan Still working on this PR?

@DrahtBot

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK luke-jr
Concept ACK pablomartin4btc

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@hebasto

hebasto commented Sep 22, 2023

Copy link
Copy Markdown
Member

Closing for now due to lack of progress. Let us know if this should be reopened.

Labeling "Up for grabs" as well.

@hebasto hebasto closed this Sep 22, 2023
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Sep 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shortcut ambiguities

6 participants