Flesh out gpui2 test support
This commit is contained in:
parent
eb325fb387
commit
8e799b6e22
7 changed files with 271 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue