editor: Fix hover definition to immediately hide when move out. (#1309)
This commit is contained in:
parent
f92944546f
commit
d5ae887cbb
1 changed files with 2 additions and 1 deletions
|
|
@ -112,11 +112,12 @@ impl InputState {
|
|||
cx: &mut Context<InputState>,
|
||||
) {
|
||||
if event.modifiers.secondary() {
|
||||
self.hover_popover = None;
|
||||
self.handle_hover_definition(offset, window, cx);
|
||||
} else {
|
||||
self.hover_definition.clear();
|
||||
self.hover_popover = None;
|
||||
self.handle_hover_popover(offset, window, cx);
|
||||
}
|
||||
cx.notify();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue