Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions java/src/org/openqa/selenium/Keys.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
*
* <p>The codes follow conventions partially established by the W3C WebDriver specification and the
* Selenium project. Some values (e.g., RIGHT_SHIFT, RIGHT_COMMAND) are used in ChromeDriver but are
* not currently part of the W3C spec. Others (e.g., OPTION, FN) are symbolic and reserved for
* possible future mapping.
* not currently part of the W3C specification. Others (e.g., OPTION) are symbolic aliases for
* existing keys.
*
* <p>For consistency across platforms and drivers, values should be verified before assuming native
* support.
Expand Down Expand Up @@ -116,9 +116,15 @@ public enum Keys implements CharSequence {
RIGHT_ALT('\uE052'),
RIGHT_COMMAND('\uE053'),

// Symbolic macOS keys not yet standardized
OPTION('\uE052'),
FN('\uE051'), // TODO: symbolic only; confirm or remove in future
// macOS-friendly alias (do NOT introduce new codes)
OPTION(Keys.ALT),

/**
* @deprecated The FN key is not part of the W3C WebDriver specification and does not have a
* standardized Unicode mapping. Its behavior is not guaranteed across drivers/platforms.
*/
@Deprecated
FN(Keys.RIGHT_CONTROL),

ZENKAKU_HANKAKU('\uE040');

Expand Down
Loading