gui: Add shortcuts for tab tools #15756

pull promag wants to merge 1 commits into bitcoin:master from promag:2019-04-tools-shortcuts changing 3 files +12 −0
  1. promag commented at 3:23 PM on April 5, 2019: member

    This makes accessing the RPC console very fast/easy. It also improves accessibility.

    <img width="234" alt="Screenshot 2019-10-02 at 01 30 53" src="https://user-images.githubusercontent.com/3534524/66009867-50104300-e4b4-11e9-90b5-6b8dc961a8a1.png">

  2. fanquake added the label GUI on Apr 5, 2019
  3. Empact commented at 1:08 AM on April 6, 2019: member

    Concept ACK - letters could be more mnemonic and stable over time because they aren't tied to the order of the list.

  4. promag commented at 4:11 PM on April 7, 2019: member

    @Empact could be, open for suggestions. Just used 1 to 4 because those are the tab indexes in the dialog.

  5. Empact commented at 6:09 AM on April 8, 2019: member

    Sure, I could go either way.

  6. jonasschnelli commented at 7:11 AM on April 8, 2019: contributor

    Concept ACK No strong opinion about numbers versus something not tied to an order.

  7. jonasschnelli commented at 9:22 AM on April 8, 2019: contributor

    Tested ACK 2e2b30b201b5670ec755237ec9e93d3c2388bf2b https://bitcoin.jonasschnelli.ch/build/1046

  8. laanwj commented at 12:23 PM on April 15, 2019: member

    would it make sense to make these shortcuts application-global ? (see #15768 (comment)). I personally kind of expected pressing multiple in sequence e.g. Ctrl-1 Ctrl-2 to work.

  9. promag commented at 1:28 PM on April 15, 2019: member

    @laanwj currently it does, at least on macos. Have you tested in other OS?

  10. promag commented at 1:30 PM on April 15, 2019: member

    BTW, one could argue that these shortcuts are better fit for Overview, Send, Receive and Transactions tabs in the main window.

  11. luke-jr commented at 6:36 PM on April 18, 2019: member

    Alt-1..4 already work for the main window tabs.

    I'm not sure using numbers for a different window makes sense.

  12. promag commented at 6:52 PM on April 18, 2019: member

    @luke-jr I wasn't aware of that. On macos shortcuts are usually with CMD (Qt::CTRL).

    So do you suggest using letters?

  13. luke-jr commented at 8:35 PM on April 20, 2019: member

    I'm not sure it makes sense to give shortcuts for debug-window stuff. These aren't things normal users should be using. (If they are, we should promote them out of the debug window.)

  14. promag commented at 10:21 PM on April 21, 2019: member

    @luke-jr "debug window" is something the user isn't aware of. And these things are already promoted in the window menu - this PR only improves their accessibility.

    My suggestion:

    • on macos make CMD-[1-4] the same as ALT-[1-4]
    • SHIFT-CMD-[ICNP] for these tabs (and the equivalent on other systems).
  15. GChuf commented at 4:19 PM on August 29, 2019: contributor

    Concept ACK, would really like to see this implemented. for non-macOS, I'd suggest using: Ctrl + T for console window (T for terminal) Ctrl + I for Info Ctrl + P for peers Ctrl + N for network

  16. laanwj added the label Feature on Sep 30, 2019
  17. promag force-pushed on Oct 2, 2019
  18. gui: Add shortcuts for tab tools 091747b46e
  19. DrahtBot commented at 12:28 AM on October 2, 2019: member

    <!--cf906140f33d8803c4a75a2196329ecb-->Needs rebase

  20. DrahtBot added the label Needs rebase on Oct 2, 2019
  21. promag force-pushed on Oct 2, 2019
  22. promag commented at 12:29 AM on October 2, 2019: member

    Rebased and followed @GChuf suggestion and updated screenshot.

  23. fanquake removed the label Needs rebase on Oct 2, 2019
  24. laanwj commented at 9:32 AM on October 2, 2019: member

    Concept ACK, though it's a bit inconsistent now, at least in Linux.

    When the main window is selected, the following shortcuts work:

    Ctrl-I
    Ctrl-T
    Ctrl-N
    Ctrl-P
    

    When the debug window is selected, only the following shortcuts work:

    Alt-I
    Alt-C (so, not T)
    Alt-N
    Alt-P
    
  25. GChuf commented at 11:17 AM on October 4, 2019: contributor

    @promag glad you like my suggestion!

    Tested 091747b46ecf06244ce2650028f1833b2e7c5062 on Ubuntu 18, can confirm CTRL shortcuts don't work when debug window is opened.

    As for Alt-T / Alt-C, the only solution I can think of is renaming Console to Terminal (is that even right?) so that we could have Alt-T for consistency. Obviously, CTRL-C could be problematic.

  26. jonasschnelli commented at 10:16 AM on October 9, 2019: contributor

    Tested ACK 091747b46ecf06244ce2650028f1833b2e7c5062 - this is an improvment. Further solutions to solve the interference between the console and the shortcuts (if possible) can be done upstream (Qt) or with another PR.

  27. jonasschnelli added this to the milestone 0.20.0 on Oct 9, 2019
  28. jonasschnelli referenced this in commit 5cb1d938a1 on Oct 10, 2019
  29. jonasschnelli merged this on Oct 10, 2019
  30. jonasschnelli closed this on Oct 10, 2019

  31. promag deleted the branch on Oct 10, 2019
  32. sidhujag referenced this in commit fe3c9662c7 on Oct 11, 2019
  33. MarkLTZ referenced this in commit 4c6347438a on Nov 17, 2019
  34. jasonbcox referenced this in commit a3bf3e8b57 on Oct 28, 2020
  35. ftrader referenced this in commit e8022382e1 on Apr 14, 2021
  36. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me