Skip to content

mapDoubleTap breaks the normal behavior (single tap, holding) #157

@mkjawadi

Description

@mkjawadi

Hi, mapDoubleTap messes up the usual key behavior (single tap/holding). For example, below config maps that the double tapping the right shift key should toggle the “show desktop” option which works. However single-tap and hold actions for right shift don’t work. So, if you press the right shift key and a regular key (right shift + a), you won’t get the output you want, like typing the capital “A”. BTW, the double tap issue is with all keys not just the right shift key.

Karabiner Element: v15.3.0
karabiner.ts: v1.30.3

writeToProfile("Default profile", [
  rule("Caps Lock → Hyper").manipulators([
    map("⇪").toHyper().toIfAlone("⎋"), // Or map('caps_lock').toHyper().toIfAlone('escape')
    map("⇪", "⇧").to("⇪"), // Or map('caps_lock', 'shift').to('caps_lock')

    // Toggle Show Desktop
    mapDoubleTap("right_shift").to("f11", "fn")
  ])
]);

I have also tried the followings but didn't work either.

mapDoubleTap("right_shift").to("f11", "fn").toIfAlone("right_shift")
mapDoubleTap("right_shift").to("f11", "fn").singleTap(toKey("right_shift"))

Am I missing something?
Thanks in advance. 🙏

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