nut-tree/nut.js

Automatically repeat keystrokes for `keyboard.pressKey(...)`

joel-duffie opened this issue · 0 comments

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.