zed/crates/gpui2
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
..
src Simplify input handling (#3282) 2023-11-08 22:27:36 -07:00
build.rs Tooltips in mouse event handler & fix executor timer 2023-11-03 18:02:58 -04:00
Cargo.toml Remove dependency from gpui from editor2 2023-11-03 09:05:58 +01:00