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

Add "while holding" command #35

Closed
emiln opened this issue Feb 20, 2016 · 1 comment
Closed

Add "while holding" command #35

emiln opened this issue Feb 20, 2016 · 1 comment

Comments

@emiln
Copy link
Owner

emiln commented Feb 20, 2016

It would be nice to be able to write scripts like:

(while-holding "Shift"
  (click))

I suggest the first argument for while-holding would be the same type as the existing key press commands.

@emiln
Copy link
Owner Author

emiln commented Feb 21, 2016

The while in while-holding didn't sit well with me. It should be just as clear with

(holding "SHIFT"
  (click))

emiln added a commit that referenced this issue Feb 21, 2016
#35

This command simulates holding down a key (with potential modifier
keys), performing arbitrary other commands, and then releasing the
key. It's particularly useful for holding a key while performing
mouse commands.
@emiln emiln closed this as completed in #38 Feb 21, 2016
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

1 participant