-
Notifications
You must be signed in to change notification settings - Fork 389
added functionality to send keypresses, i.e. a press without release #18
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
Conversation
…ithout release. sendKeyStroke sends the release automatically, which creates a problem when you want to use the repeating key functionality of your OS.
added functionality to send keypresses, i.e. a press without release
|
Thanks! |
|
@eelmasllari - can you fix this ? #48 Unable to generate this sequence. Can we hold two keys and release them separately ? We can do in normal keyboard but not with this library. |
|
I have moved on to other projects since, but have you tried sendKeyPress(0, MOD_ALT_LEFT) to keep the ALT pressed and release the tab? That's the only thing I can think of. |
|
@eelmasllari - yes, I have tried, but that is not working.. I basically need a Window Switch behaviour, we do window switch like Alt + Tab, while we hold Alt key for long time but we keep on pressing Tab key again and again for moving to next window in desktop OS. Also, sendKeyPress(0, MOD_ALT_LEFT) do press (no -release) the ALT key but I have to press Tab key too (press-release). so, I have cododed l Culprit is |
@eelmasllari @digistumpI used xev to look what happen when I release multiple keys.. this is what i got I pressed ALT KEY for long and in between I pressed KEY_A twice. So you can notice that multiple KeyRelease event came from Laptop keyboard. while KeyRelease for ALT came at the last. |
|
I can't test this, but have you tried something along these lines? |
|
@eelmasllari Let me try !! |
added functionality to send keypresses, i.e. a press without release.
sendKeyStroke sends the release automatically, which creates a problem when you want to use the repeating key functionality of your OS. This change is backwards compatible and introduces the sendKeyPress function for cases when you want explicit control over press and release events.