Merge pull request #1764 from zed-industries/gpui-events
Eliminate dispatch_event on Element trait
This commit is contained in:
commit
f8e5a08324
56 changed files with 861 additions and 1245 deletions
|
@ -2659,7 +2659,7 @@ impl View for Workspace {
|
|||
.named("workspace")
|
||||
}
|
||||
|
||||
fn on_focus_in(&mut self, view: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
fn focus_in(&mut self, view: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
if cx.is_self_focused() {
|
||||
cx.focus(&self.active_pane);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue