VectorStyler
    • Categories
    • Unread
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Allow for multi-stroke keyboard shortcuts ( accumulated )

    Scheduled Pinned Locked Moved Features and Ideas
    13 Posts 4 Posters 12.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      Nils
      last edited by Nils

      Notice: Accumulated into mega-topic.

      Right now shortcuts can only consist of a modifier plus a key. Some apps ( various JetBrains IDES for example ) allow for multi-stroke ones, like "ctrl + a, ctrl + b", so that the command is only executed after this exact sequence of shortcuts.

      VectorStylerV 1 Reply Last reply Reply Quote 1
      • VectorStylerV Offline
        VectorStyler @Nils
        last edited by

        @Nils Internally, this exists. Just need a good UI for it: how to input multi-stroke shortcuts.

        BoldlineB 1 Reply Last reply Reply Quote 2
        • BoldlineB Offline
          Boldline @VectorStyler
          last edited by

          @vectoradmin said in Allow for multi-stroke keyboard shortcuts:

          Just need a good UI for it: how to input multi-stroke shortcuts.

          As a non-developer, can you elaborate more on what you mean by this? 🙂

          🍎 macOS Tahoe 26.2, Mac mini (M1, 2020), Chip Apple M1, Memory 16 GB
          Cintiq 27QHD Display and LG Ultra HD Display

          VectorStylerV 1 Reply Last reply Reply Quote 0
          • VectorStylerV Offline
            VectorStyler @Boldline
            last edited by

            @Boldline Well, in the current "customize shortcuts" view, when pressing a key combination in the action list, that can be recorded as a shortcut.
            Pressing an other one, overwrites the previous.
            So how to add multiple key presses?

            BoldlineB 1 Reply Last reply Reply Quote 0
            • F Offline
              fde101 Global Moderator
              last edited by

              Put another way: the program itself can already accept and interpret multi-stroke shortcuts once such a shortcut has assigned to something, but currently there is no way to assign one to anything.

              1 Reply Last reply Reply Quote 1
              • BoldlineB Offline
                Boldline @VectorStyler
                last edited by

                @vectoradmin Could this be done by designating a recording input session with a button to start and stop - similar to the way an action is recorded?

                🍎 macOS Tahoe 26.2, Mac mini (M1, 2020), Chip Apple M1, Memory 16 GB
                Cintiq 27QHD Display and LG Ultra HD Display

                VectorStylerV 1 Reply Last reply Reply Quote 0
                • VectorStylerV Offline
                  VectorStyler @Boldline
                  last edited by

                  @Boldline How about this?

                  • user clicks on an existing shortcut: editing opens
                  • pressing the shortcut replaces the existing shortcut.
                  • pressing another shortcut adds to the edited shortcut.
                  • to replace the shortcut again, the user must press [delete] or click away and click again.
                  F N 2 Replies Last reply Reply Quote 1
                  • F Offline
                    fde101 Global Moderator @VectorStyler
                    last edited by

                    @vectoradmin said in Allow for multi-stroke keyboard shortcuts:

                    @Boldline How about this?

                    • user clicks on an existing shortcut: editing opens
                    • pressing the shortcut replaces the existing shortcut.
                    • pressing another shortcut adds to the edited shortcut.
                    • to replace the shortcut again, the user must press [delete] or click away and click again.

                    Not really a problem, but maybe to help highlight that there is some hidden complexity in this request:

                    How do you cover the case where the user has already set, say Control+K B as a shortcut, then wants to add one for Control+K E?

                    In this case, when the user enters Control+K to start the shortcut, you have an immediate conflict between a single-stroke shortcut (Control+K) and a dual-stroke shortcut (Control+K B), so if the user leaves it that way, which one wins?

                    Or going the other way, if there is already a Control+K shortcut and the user creates one for Control+K B?

                    VectorStylerV 1 Reply Last reply Reply Quote 0
                    • VectorStylerV Offline
                      VectorStyler @fde101
                      last edited by

                      @fde101 said in Allow for multi-stroke keyboard shortcuts:

                      How do you cover the case where the user has already set, say Control+K B as a shortcut, then wants to add one for Control+K E?

                      Cannot. The user has to restart. Or there can be some kind of highlight, that can be cleared to avoid deleting the existing shortcut?

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        fde101 Global Moderator @VectorStyler
                        last edited by

                        @vectoradmin I mean for two different commands. If one command is set as Control+K B, then how do you set another command to Control+K E without creating a conflict before the E is added to the command?

                        One option for example is that if you use the first stroke of the existing shortcut the interface does not actually set the new one until the second key is provided...

                        VectorStylerV N 2 Replies Last reply Reply Quote 0
                        • N Offline
                          Nils @VectorStyler
                          last edited by Nils

                          @vectoradmin I suggest to do this the way it works in JetBrains's IDEs:

                          They provide a checkbox "Second stroke". If you check it a second text field appears or gets un-greyed-out, in which you can then type your second stroke.

                          1 Reply Last reply Reply Quote 0
                          • VectorStylerV Offline
                            VectorStyler @fde101
                            last edited by

                            @fde101 said in Allow for multi-stroke keyboard shortcuts:

                            @vectoradmin I mean for two different commands. If one command is set as Control+K B, then how do you set another command to Control+K E without creating a conflict before the E is added to the command?

                            @fde101 As long as the keys are assigned (somehow), the shortcut handler is able to figure this out. But: in that case there cannot be a shortcut with only "Control+K"

                            1 Reply Last reply Reply Quote 0
                            • N Offline
                              Nils @fde101
                              last edited by

                              @fde101 See my comment to @vectoradmin, where I described how JetBrains perfectly solved this issue.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post