Skip to content

Commit f8c1d0f

Browse files
committed
[py] add macOS specific keys to Key enum
1 parent 3876882 commit f8c1d0f

File tree

1 file changed

+10
-0
lines changed
  • py/selenium/webdriver/common

1 file changed

+10
-0
lines changed

py/selenium/webdriver/common/keys.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,13 @@ class Keys:
8888
META = "\ue03d"
8989
COMMAND = "\ue03d"
9090
ZENKAKU_HANKAKU = "\ue040"
91+
92+
# Extended macOS/ChromeDriver keys (based on observed Chrome usage)
93+
RIGHT_SHIFT = "\ue050"
94+
RIGHT_CONTROL = "\ue051"
95+
RIGHT_ALT = "\ue052"
96+
RIGHT_COMMAND = "\ue053"
97+
98+
# Symbolic macOS keys not yet standardized
99+
OPTIONS = "\uE050" # TODO: verify Unicode value with WebDriver spec
100+
FUNCTION = "\uE051" # TODO: symbolic only; confirm or remove in future

0 commit comments

Comments
 (0)