Community
Participate
Working Groups
Currently, the TraverseFocusOnTypeHandler and SelectFocusedOnTypeHandler query KeyEvent#isShiftDown() and #isControlDown() for determining the focus traversal direction or the selection mode, respectively. However, the #isShiftDown() and #isControlDown() methods never return true for the initial key press event, because all key codes except for SPACE and TAB are discarded. In order to be able to traverse focus in both directions (instead of only forwards), as well as appending to the current selection (instead of replacing it), the SHIFT and CONTROL modifiers need to be checked in the press(KeyEvent) callback method instead of the initialPress(KeyEvent) callback method.