Skip to content

Commit ed719a8

Browse files
committed
Format script
1 parent 3a6dd59 commit ed719a8

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

java/src/org/openqa/selenium/Keys.java

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,21 @@
2424
/**
2525
* Representations of pressable keys that aren't text. These are stored in the Unicode PUA (Private
2626
* Use Area) code points, 0xE000–0xF8FF. These values are used internally by WebDriver to simulate
27-
* keyboard input where standard Unicode characters are insufficient, such as modifier and control keys.
27+
* keyboard input where standard Unicode characters are insufficient, such as modifier and control
28+
* keys.
2829
*
29-
* The codes follow conventions partially established by the W3C WebDriver specification and the Selenium project.
30-
* Some values (e.g., RIGHT_SHIFT, RIGHT_COMMAND) are used in ChromeDriver but are not currently part of the W3C spec.
31-
* Others (e.g., OPTION, FN) are symbolic and reserved for possible future mapping.
30+
* <p>The codes follow conventions partially established by the W3C WebDriver specification and the
31+
* Selenium project. Some values (e.g., RIGHT_SHIFT, RIGHT_COMMAND) are used in ChromeDriver but are
32+
* not currently part of the W3C spec. Others (e.g., OPTION, FN) are symbolic and reserved for
33+
* possible future mapping.
3234
*
33-
* For consistency across platforms and drivers, values should be verified before assuming native support.
35+
* <p>For consistency across platforms and drivers, values should be verified before assuming native
36+
* support.
3437
*
35-
* @see <a href="https://www.w3.org/TR/webdriver/#keyboard-actions">W3C WebDriver Keyboard Actions</a>
36-
* @see <a href="http://www.google.com.au/search?&q=unicode+pua&btnK=Search">Unicode PUA Overview</a>
38+
* @see <a href="https://www.w3.org/TR/webdriver/#keyboard-actions">W3C WebDriver Keyboard
39+
* Actions</a>
40+
* @see <a href="http://www.google.com.au/search?&q=unicode+pua&btnK=Search">Unicode PUA
41+
* Overview</a>
3742
*/
3843
@NullMarked
3944
public enum Keys implements CharSequence {
@@ -115,7 +120,7 @@ public enum Keys implements CharSequence {
115120

116121
// Symbolic macOS keys not yet standardized
117122
OPTION('\uE050'), // TODO: verify Unicode value with WebDriver spec
118-
FN('\uE051'), // TODO: symbolic only; confirm or remove in future
123+
FN('\uE051'), // TODO: symbolic only; confirm or remove in future
119124

120125
ZENKAKU_HANKAKU('\uE040');
121126

@@ -162,8 +167,8 @@ public String toString() {
162167
}
163168

164169
/**
165-
* Simulate pressing many keys at once in a "chord".
166-
* Takes a sequence of Keys.XXXX or strings; appends each to a string, adds the chord termination key (Keys.NULL), and returns it.
170+
* Simulate pressing many keys at once in a "chord". Takes a sequence of Keys.XXXX or strings;
171+
* appends each to a string, adds the chord termination key (Keys.NULL), and returns it.
167172
*
168173
* <p>Note: Keys.NULL signals release of modifier keys like CTRL/ALT/SHIFT via keyup events.
169174
*

0 commit comments

Comments
 (0)