Community
Participate
Working Groups
The TraverseFocusOnTypeHandler is registered only for the root part within the MVC Logo example. Since only the handlers "nearest" to the interacted-with part are invoked to handle user interaction (see DefaultHandlerResolver), the handler for traversing focus on TAB and SHIFT-TAB is not invoked when a connection or shape part has focus, because, for example, the SelectFocusedOnTypeHandler is already found at the interacted-with part. In order to enable tab traversal again for the MVC Logo example, the TraverseFocusOnTypeHandler needs to be registered at the connection and shape parts, too. However, when binding the handler also for connections and shapes, then it will throw an IllegalStateException, because it cannot find the FocusTraversalPolicy necessary to carry out the focus change, because that policy is queried from the host, although it should be queried from the root part, instead.