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

Mode keys will run a proc placed in "hold" no matter what the hold time is set to #135

Open
SekoiaTree opened this issue Aug 9, 2022 · 1 comment

Comments

@SekoiaTree
Copy link

I wanted to make a key that presses backspace if tapped, and keypad enter if held for a while. This is what I ended up writing:

kbd.define_mode_key :ENTER_DEL, [ :KC_BSPACE, Proc.new { kbd.send_key(:KC_KP_ENTER); puts "Enter" }, 10000, nil]

(the long time and the puts is just for testing)
However, if I keep it pressed, "Enter" appears in the console several times.

Now that I think about it, this might be intended behavior. If it is, I would like to request some way of doing what I want here; a key which does one key if tapped, and another if pressed for a while.

@hasumikin
Copy link
Member

Let me think for a while...

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

No branches or pull requests

2 participants