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

Automatically repeat keystrokes for keyboard.pressKey(...) #563

Open
joel-duffie opened this issue Feb 29, 2024 · 0 comments
Open

Automatically repeat keystrokes for keyboard.pressKey(...) #563

joel-duffie opened this issue Feb 29, 2024 · 0 comments

Comments

@joel-duffie
Copy link

Short overview
keyboard.pressKey() should automatically repeat the keystrokes of any 'normal' (non-modifier) keys.

Use case
I have a shortcut in my application which increases the text size of a textbox.
The shortcut is: Cmd + Shift + Equals

I would like to automate the process of increasing the text size by a large amount.
To achieve this manually, I can simply press and hold the 'text bigger' shortcut for 5 seconds.

Detailed feature description
To automate the example in nut.js, I thought all I would need to do is keyboard.pressKey(LeftCmd, LeftShift, Equals).
However, this does not repeat the shortcut as I expect.

The added feature would make it so that both modifier and 'normal' keys are repeated when held, potentially at a specified interval.

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