Skip to content

Keymap mapping to other keymap #3

@fzf

Description

@fzf

I have a keymap below, when pressing cmd + p it triggers the cmd + t hotkey. Is there any way around this?

knu.keymap.register(
  "company.thebrowser.Browser",
  knu.keymap.new(
    -- Quick Open
    hs.hotkey.bind({ "cmd" }, "p", function ()
      hs.eventtap.keyStroke({ "cmd" }, "t", 1000)
    end),
    -- Forward
    hs.hotkey.new({ "cmd" }, "t", function ()
      hs.eventtap.keyStroke({ "cmd" }, "]", 1000)
    end)
  )
)

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