Skip to content

Commit 176eee0

Browse files
Delta456shbenzer
andauthored
[py] add macOS specific keys to Key enum (#15948)
* [py] add macOS specific keys to Key enum * lint * fmt * tweaks * tweaks * linting --------- Co-authored-by: Simon Benzer <69980130+shbenzer@users.noreply.github.com> Co-authored-by: Simon Benzer <simonhbenzer@gmail.com>
1 parent 83b5fb0 commit 176eee0

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
@@ -31,10 +31,13 @@ class Keys:
3131
ENTER = "\ue007"
3232
SHIFT = "\ue008"
3333
LEFT_SHIFT = SHIFT
34+
RIGHT_SHIFT = "\ue050"
3435
CONTROL = "\ue009"
3536
LEFT_CONTROL = CONTROL
37+
RIGHT_CONTROL = "\ue051"
3638
ALT = "\ue00a"
3739
LEFT_ALT = ALT
40+
RIGHT_ALT = "\ue052"
3841
PAUSE = "\ue00b"
3942
ESCAPE = "\ue00c"
4043
SPACE = "\ue00d"
@@ -86,5 +89,12 @@ class Keys:
8689
F12 = "\ue03c"
8790

8891
META = "\ue03d"
92+
LEFT_META = META
93+
RIGHT_META = "\ue053"
8994
COMMAND = "\ue03d"
95+
LEFT_COMMAND = COMMAND
9096
ZENKAKU_HANKAKU = "\ue040"
97+
98+
# Extended macOS keys
99+
LEFT_OPTION = LEFT_ALT
100+
RIGHT_OPTION = RIGHT_ALT

0 commit comments

Comments
 (0)