zed/crates/editor2/src
Nathan Sobo 8c44f6a814
Simplify input handling (#3282)
This PR takes a different approach to input handling.

Rather than returning the optional input handler, focus handle pair from
the element trait, we instead allow you to register an input handler
imperatively on the window context with `WindowContext::handle_input`.
You pass a focus handle reference and any implementer of
`PlatformInputHandler`. There's an `ElementInputHandler<V>` that
implements `PlatformWindowHandler` so long as `V` implements
`InputHandler`.

Release Notes:

- N/A
2023-11-08 22:27:36 -07:00
..
display_map Get editor2 compiling with a ton of code commented out 2023-11-02 23:35:20 -06:00
scroll Re-enable most of the functionalities in editor2 2023-11-08 11:30:32 +01:00
test WIP 2023-11-02 21:03:29 -06:00
blink_manager.rs Fix blinking behavior in editor when receiving/losing focus 2023-11-08 19:03:57 +01:00
display_map.rs Fix DisplaySnapshot::x_for_point always returning 0 2023-11-08 13:55:39 -08:00
editor.rs Simplify input handling (#3282) 2023-11-08 22:27:36 -07:00
editor_settings.rs Into the woods 2023-11-02 18:52:08 -06:00
editor_tests.rs
element.rs Simplify IME support 2023-11-08 21:06:00 -07:00
git.rs
highlight_matching_bracket.rs Merge remote-tracking branch 'origin/main' into editor-movement 2023-11-07 18:48:08 +01:00
hover_popover.rs Clear hover background highlights 2023-11-08 15:08:54 +01:00
inlay_hint_cache.rs WIP 2023-11-02 22:56:04 -06:00
items.rs Update editor to use new event emitter 2023-11-08 19:52:43 -08:00
link_go_to_definition.rs uncomment mouse moved 2023-11-08 14:24:28 +01:00
mouse_context_menu.rs Remove dependency from gpui from editor2 2023-11-03 09:05:58 +01:00
movement.rs Merge remote-tracking branch 'origin/main' into editor-movement 2023-11-07 18:48:08 +01:00
persistence.rs Get editor2 compiling with a ton of code commented out 2023-11-02 23:35:20 -06:00
scroll.rs Re-enable most of the functionalities in editor2 2023-11-08 11:30:32 +01:00
selections_collection.rs Re-enable most of the functionalities in editor2 2023-11-08 11:30:32 +01:00
test.rs Into the woods 2023-11-02 18:52:08 -06:00