Flesh out gpui2 test support

This commit is contained in:
Conrad Irwin 2023-11-06 20:44:03 -07:00
parent eb325fb387
commit 8e799b6e22
7 changed files with 271 additions and 13 deletions

View file

@ -1047,7 +1047,7 @@ impl<'a> WindowContext<'a> {
}
/// Dispatch a mouse or keyboard event on the window.
fn dispatch_event(&mut self, event: InputEvent) -> bool {
pub fn dispatch_event(&mut self, event: InputEvent) -> bool {
let event = match event {
// Track the mouse position with our own state, since accessing the platform
// API for the mouse position can only occur on the main thread.