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

Сan't simulate pressing a shortcut #199

Open
KaterinaNavara opened this issue Mar 10, 2023 · 3 comments
Open

Сan't simulate pressing a shortcut #199

KaterinaNavara opened this issue Mar 10, 2023 · 3 comments

Comments

@KaterinaNavara
Copy link

I'm trying to simulate pressing the shortcut - command+shift+g in the file save window, but it doesn't work either way.
I tried way mentioned in documentation, like this:
await browser.executeScript("macos: keys", [{ keys: [{ key: "g", modifierFlags: ((1 << 4) & (1 << 1)) }] } ])
but it doesn't work. Could you help me with it, please?

@HaoWShi
Copy link

HaoWShi commented Feb 23, 2024

has you sloved it now?I have same question about simulate combine multi keys

@mykola-mokhnach
Copy link
Contributor

Change the expression for modifierFlags to (1 << 4) | (1 << 1)

@HaoWShi
Copy link

HaoWShi commented Feb 24, 2024

image

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

3 participants