Skip to content

[js] Add extended and symbolic macOS/ChromeDriver key representations #15957

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

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from
12 changes: 11 additions & 1 deletion javascript/webdriver/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,15 @@ webdriver.Key = {
F12: '\uE03C',

COMMAND: '\uE03D', // Apple command key
META: '\uE03D' // alias for Windows key
META: '\uE03D', // alias for Windows key

// Extended macOS/ChromeDriver keys
RIGHT_SHIFT: '\uE050',
RIGHT_CONTROL: '\uE051',
RIGHT_ALT: '\uE052',
RIGHT_COMMAND: '\uE053',

// Symbolic macOS keys
OPTIONS: '\uE052', // TODO: verify Unicode value with WebDriver spec
FUNCTION: '\uE051' // TODO: symbolic only; confirm or remove in future
};