Skip to content

Query: set timeout for Key release while the Key is held for a certain durationΒ #299

@hilprl

Description

@hilprl

Hi,

I am trying to achieve the following behaviour and almost got it working. Remapping AltRight such that

Single tap                   -> prints Backslash
Slightly longer single tap   -> prints Pipe character
Hold                         -> will act as Shift

This is what I have in my config

  Shift{AltRight} >> AltRight
  AltRight{!200ms} >> (Backslash)
  AltRight 100ms !AltRight  >> (Shift Backslash)^
  AltRight >> Shift

The issue I am experiencing is, in situations where AltRight is held to trigger Shift, and then released without pressing a second key, Pipe gets printed. I am wondering if there is a way to configure Keymapper such that, when AltRight is held for longer than a certain duration and then releasing it won't trigger printing Pipe. I tried setting different timeouts and changing the order, but no joy so far.

Linux x86_64
Keymapper v5.0.0

Thanks in advance

Edit: Added Os details and Keymapper version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions