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 modifiers support for keypress #663

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaryamHuntsperger
Copy link

@MaryamHuntsperger MaryamHuntsperger commented Apr 18, 2024

Existing kepress command does not support modifiers to dispatch a key combination event such as Ctrl+A.

Using Devtools Protocol (https://chromedevtools.github.io/devtools-protocol/tot/Input/) Input.dispatchKeyEvent modifiers, we have added a new value argument where the users can pass Alt, Ctrl or Shift and dispatch key combinations. The new format is:
keypress [tab] key [tab] Alt|Ctrl|Shift.
image

The new command is backward compatible and works as before if no value passed. In case of passing garbage values, it also ignores them. This is behavior is aligned with Devtools Protocol, when a key combination is at system level, it gets simply ignored.

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

Successfully merging this pull request may close these issues.

None yet

1 participant