registerGlobalHandlers method

void registerGlobalHandlers()

Registers global input event handlers that are needed to manage focus.

This calls the HardwareKeyboard.addHandler on the shared instance of HardwareKeyboard and adds a route to the global entry in the gesture routing table. As such, only one FocusManager instance should register its global handlers.

When this focus manager is no longer needed, calling dispose on it will unregister these handlers.

Implementation

void registerGlobalHandlers() => _highlightManager.registerGlobalHandlers();