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

Ability for keybinding to repeat if key held down #59

Closed
AdrianVovk opened this issue Aug 12, 2018 · 2 comments
Closed

Ability for keybinding to repeat if key held down #59

AdrianVovk opened this issue Aug 12, 2018 · 2 comments

Comments

@AdrianVovk
Copy link
Contributor

AdrianVovk commented Aug 12, 2018

Sometimes, we want a binding to be triggered over and over as long as a key is being held down (volume buttons), and other times we want it triggered once per key down and key up (run dialog).

Example impl:

[command]
binding_1 = KEY_VOLUMEUP
repeat_1 = true
command_1 = cSH-panel --signal volume-up

binding_2 = <super> KEY_R
repeat_1 = false # This is assumed by default
command_1 = cSH-run-dialog
@AdrianVovk AdrianVovk changed the title Key repeat binding Ability for keybinding to repeat if key held down Aug 12, 2018
@ammen99 ammen99 added this to the 1.0-beta 1 milestone Aug 12, 2018
@ammen99
Copy link
Member

ammen99 commented Jan 27, 2019

@AdrianVovk I wonder, is there another place where repeating a keybinding makes sense? If this is needed only for command plugin, then the implementation won't be hard. Adding it to the core may present some difficulties.

@AdrianVovk
Copy link
Contributor Author

@ammen99 I can't think of a need to have it in core on the spot

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

No branches or pull requests

2 participants