File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
py/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff 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 "
@@ -58,7 +61,7 @@ class Keys:
5861 NUMPAD0 = "\ue01a " # number pad keys
5962 NUMPAD1 = "\ue01b "
6063 NUMPAD2 = "\ue01c "
61- NUMPAD3 = "\ue01d "
64+ NUMPAD3 = "x \ue01d "
6265 NUMPAD4 = "\ue01e "
6366 NUMPAD5 = "\ue01f "
6467 NUMPAD6 = "\ue020 "
@@ -86,15 +89,15 @@ 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 "
9197
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
98+ # Extended macOS keys
99+ LEFT_OPTION = LEFT_ALT
100+ RIGHT_OPTION = RIGHT_ALT
101+
102+
103+
You can’t perform that action at this time.
0 commit comments