mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-23 09:01:16 +01:00
Cancel pending rename when hitting escape
This commit is contained in:
@@ -1452,6 +1452,10 @@ impl Editor {
|
||||
}
|
||||
|
||||
pub fn cancel(&mut self, _: &Cancel, cx: &mut ViewContext<Self>) {
|
||||
if self.take_rename(cx).is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
if self.hide_context_menu(cx).is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user