Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting number of clicks in keymap.add does not work for keyboard keys #1883

Open
zeozeozeo opened this issue Sep 22, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@zeozeozeo
Copy link

When passing a shortcut to keymap.add, it is possible to set the number of clicks before the keybind gets activated for mouse buttons:

-- open core:find-command on 2 consecutive middle clicks
keymap.add { ["2mclick"] = "core:find-command" }

however, this does not work with keyboard keys:

-- should open core:find-command on 2 consecutive ctrl presses - currently doesn't do anything
-- this would act similar to IntelliJ's double-ctrl or double-shift keypress
keymap.add { ["2ctrl"] = "core:find-command" }
@Guldoman Guldoman added the enhancement New feature or request label Sep 25, 2024
@Guldoman
Copy link
Member

Yeah, we handle clicks a bit differently.

this would act similar to IntelliJ's double-ctrl or double-shift keypress

I absolutely hate that behavior, but yeah, we'll keep in mind this feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants