handleInput method
Handles a generic InputEvent by delegating to tab navigation or mouse processing as appropriate.
KeyCode.tab
→ move focus forwardKeyCode.shiftTab
→ move focus backward- MouseEvent → handle hover and clicks
Returns ResponseInput.ignored if the event does not affect focus/hover.
Implementation
@override
ResponseInput handleInput(InputEvent event) {
if (event is KeyEvent && event.code == KeyCode.shiftTab) {
return _handleTab(true);
} else if (event is KeyEvent && event.code == KeyCode.tab) {
return _handleTab(false);
} else if (event is MouseEvent) {
return _handleMouseInput(event);
}
return ResponseInput.ignored();
}