zed/crates/gpui2/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
..
app Merge branch 'main' into event-emitter 2023-11-08 20:10:38 -08:00
elements Preserve stateless interactivity when assigning elements an id 2023-11-08 10:45:10 -08:00
keymap
platform Fix vertical position in first_rect_for_character_range 2023-11-08 17:27:32 -08:00
text_system Fix clipping in Line::draw 2023-11-08 17:32:21 +01:00
action.rs WIP 2023-11-08 12:49:09 -08:00
app.rs Merge branch 'main' into event-emitter 2023-11-08 20:10:38 -08:00
assets.rs
color.rs
element.rs Remove comments 2023-11-08 21:49:21 -07:00
elements.rs
executor.rs Get tests green 2023-11-08 10:38:43 -08:00
focusable.rs
geometry.rs
gpui2.rs Simplify input handling (#3282) 2023-11-08 22:27:36 -07:00
image_cache.rs
input.rs Add docs 2023-11-08 22:03:26 -07:00
interactive.rs de-dbg 2023-11-08 18:36:12 -07:00
platform.rs Simplify IME support 2023-11-08 21:06:00 -07:00
scene.rs Remove unused SceneBuilder constructor 2023-11-08 13:30:20 -05:00
style.rs
styled.rs Merge branch 'main' into go-to-line2 2023-11-08 11:32:36 -08:00
subscription.rs First pass at allowing multiple event types to be emitted by an entity 2023-11-08 16:34:38 -08:00
svg_renderer.rs
taffy.rs
test.rs
text_system.rs
util.rs
view.rs
window.rs Simplify input handling (#3282) 2023-11-08 22:27:36 -07:00