• Todd Volkert's avatar
    Fix FocusManager constructor (#75894) · 835c7fab
    Todd Volkert authored
    The FocusManager constructor was registering global event handlers
    on the shared RawKeyboard instance and the global pointer router.
    This posed a few problems: (1) there was no way to unregister these
    handlers, and (2) instantiating a second FocusManager would overwrite
    the existing focus manager's RawKeyboard handler. This was manifesting
    in unexpected ways, such as the fact that constructing a second
    BuildOwner (for a parallel tree, for instance) was obliterating the
    event handler for the main BuildOwner's focus manager, thus messing
    with focus.
    
    This change separates those global event registrations into a
    dedicated method, registerGlobalHandlers(), and overrides dispose()
    to properly unregister those handlers.
    835c7fab
Name
Last commit
Last update
..
_binding_io.dart Loading commit data...
_binding_web.dart Loading commit data...
_goldens_io.dart Loading commit data...
_goldens_web.dart Loading commit data...
_matchers_io.dart Loading commit data...
_matchers_web.dart Loading commit data...
accessibility.dart Loading commit data...
all_elements.dart Loading commit data...
animation_sheet.dart Loading commit data...
binding.dart Loading commit data...
buffer_matcher.dart Loading commit data...
controller.dart Loading commit data...
event_simulation.dart Loading commit data...
finders.dart Loading commit data...
frame_timing_summarizer.dart Loading commit data...
goldens.dart Loading commit data...
image.dart Loading commit data...
matchers.dart Loading commit data...
nonconst.dart Loading commit data...
platform.dart Loading commit data...
restoration.dart Loading commit data...
stack_manipulation.dart Loading commit data...
test_async_utils.dart Loading commit data...
test_compat.dart Loading commit data...
test_exception_reporter.dart Loading commit data...
test_pointer.dart Loading commit data...
test_text_input.dart Loading commit data...
test_vsync.dart Loading commit data...
widget_tester.dart Loading commit data...
window.dart Loading commit data...