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

Merged
merged 2 commits into from
Oct 30, 2024

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.

@jspurlin
Copy link

@claud-io / @lbartoli79 can you review this PR, it's been pending for 5 months 😮

Thanks!

@claud-io
Copy link
Contributor

claud-io commented Sep 24, 2024

@jspurlin will try to schedule this for the upcoming weeks

@claud-io claud-io merged commit aa58ff0 into catchpoint:master Oct 30, 2024
1 check passed
@claud-io
Copy link
Contributor

@jspurlin allows this change to work, we need to change also UI. We should be able to do it by next release

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.

4 participants