Skip to content

Wait for sequence trigger timeout before triggering overlapping triggers #1386

@sds100

Description

@sds100

Developer TODO (don't remove)

  • write tests. put issue number in comment
  • update documentation

Discord message link/email recipient

Eskil on January 7 2025.

Relevant messages from the emails

In your app, i mapped functions to individual keys, for example, "j" (copy) and "k" (paste). I’d like to use the combination of these two keys (j + k) to trigger a separate action, such as pressing "Enter." However, when I do this, the original functions (copy and paste) are still executed.

I now understand your issue. I've had a couple people over the years say they don't like the behaviour you're describing when you use the same key in multiple key maps but I know some people do treat this bug as a feature. I don't want to change the default behavior of the algorithm too much because millions of people are used to the way it works currently.

Solution 1: I add an option to only trigger the key map when you release the J and K keys. Key Mapper will see that you also have an overlapping key map with J + K and will only execute the single J/K key maps if no other keys are pressed at the same time.

Solution 2: You set the J + K trigger into sequence mode and I make the algorithm wait for the sequence trigger timeout to run out before it executes the J/K trigger.

Solution 3: Find some other button to use a modifier key to use in a similar way to Ctrl/Alt etc to avoid the problem.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions