input: Fix Input escape to propagate to parent element. (#806)
Fix #803 changes broke Escape to dismiss dropdown menu.
This commit is contained in:
parent
f7be6a245a
commit
39da30815a
1 changed files with 3 additions and 1 deletions
|
|
@ -1079,8 +1079,10 @@ impl TextInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.clean_on_escape {
|
if self.clean_on_escape {
|
||||||
self.clean(window, cx);
|
return self.clean(window, cx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cx.propagate();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_mouse_down(
|
fn on_mouse_down(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue