@@ -333,25 +333,25 @@ public static void exitNestedEventLoop(Object key, Object rval) {
333
333
334
334
/**
335
335
* Returns a flag indicating whether the key corresponding to {@code keyCode}
336
- * is in the locked or "on" state.
336
+ * is in the locked ( or "on") state.
337
337
* {@code keyCode} must be one of: {@link KeyCode#CAPS} or
338
338
* {@link KeyCode#NUM_LOCK}.
339
339
* If the underlying system is not able to determine the state of the
340
340
* specified {@code keyCode}, an empty {@code Optional} is returned.
341
341
* If the keyboard attached to the system doesn't have the specified key,
342
- * {@code Boolean.FALSE } is returned.
342
+ * an {@code Optional} containing {@code false } is returned.
343
343
* This method must be called on the JavaFX Application thread.
344
344
*
345
- * @param keyCode the KeyCode of the lock state to query
345
+ * @param keyCode the {@code KeyCode} of the lock state to query
346
346
*
347
347
* @return the lock state of the key corresponding to {@code keyCode},
348
348
* or an empty {@code Optional} if the system cannot determine its state
349
349
*
350
350
* @throws IllegalArgumentException if {@code keyCode} is not one of the
351
- * valid KeyCode values.
351
+ * valid {@code KeyCode} values
352
352
*
353
353
* @throws IllegalStateException if this method is called on a thread
354
- * other than the JavaFX Application Thread.
354
+ * other than the JavaFX Application Thread
355
355
*
356
356
* @since 17
357
357
*/
0 commit comments