MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getKeyFromUnicode

Method getKeyFromUnicode

java/src/org/openqa/selenium/Keys.java:207–214  ·  view source on GitHub ↗

Retrieves the Keys enum constant corresponding to the given Unicode character. @param key unicode character code @return special key linked to the character code, or null if not found

(char key)

Source from the content-addressed store, hash-verified

205 * @return special key linked to the character code, or null if not found
206 */
207 public static @Nullable Keys getKeyFromUnicode(char key) {
208 for (Keys unicodeKey : values()) {
209 if (unicodeKey.charAt(0) == key) {
210 return unicodeKey;
211 }
212 }
213 return null;
214 }
215}

Callers 1

keyForCharacterCodeMethod · 0.80

Calls 2

valuesMethod · 0.80
charAtMethod · 0.80

Tested by 1

keyForCharacterCodeMethod · 0.64