ZIm/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 WIP 2023-10-26 17:15:19 +02:00
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 Add back Send and Sync to AssetSource 2023-11-02 09:58:53 +01:00
color.rs Merge branch 'main' into picker 2023-11-07 09:34:57 -08:00
element.rs Remove comments 2023-11-08 21:49:21 -07:00
elements.rs Rename List -> UniformList 2023-11-07 11:00:53 -08:00
executor.rs Get tests green 2023-11-08 10:38:43 -08:00
focusable.rs Remove more Send bounds and simplify view rendering 2023-11-02 09:44:16 +01:00
geometry.rs Merge branch 'main' into picker 2023-11-07 09:34:57 -08:00
gpui2.rs Simplify input handling (#3282) 2023-11-08 22:27:36 -07:00
image_cache.rs Checkpoint 2023-10-21 16:01:47 +02:00
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 Merge branch 'main' into picker 2023-11-07 11:44:02 -08:00
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 Fix the formatting 2023-10-26 13:52:04 +02:00
taffy.rs Fix cargo fmt 2023-10-27 10:44:57 +02:00
test.rs Fix hangs in new dispatcher 2023-11-01 17:11:42 -07:00
text_system.rs WIP 2023-11-02 22:56:04 -06:00
util.rs Add deterministic TestDispatcher 2023-10-25 17:33:55 +02:00
view.rs Allow converting from a WeakView<V> to an AnyWeakView 2023-11-03 11:36:18 +01:00
window.rs Simplify input handling (#3282) 2023-11-08 22:27:36 -07:00