fix autocomplete focus
This commit is contained in:
parent
ec391bc68f
commit
0c3939d4a7
@ -136,12 +136,14 @@ impl FunctionEntry {
|
||||
|
||||
self.autocomplete.update_string(&new_string);
|
||||
|
||||
if !self.autocomplete.hint.is_none() {
|
||||
if !self.autocomplete.hint.is_none() && re.has_focus() {
|
||||
if !self.autocomplete.hint.is_single() {
|
||||
if ui.input().key_pressed(Key::ArrowDown) {
|
||||
movement = Movement::Down;
|
||||
} else if ui.input().key_pressed(Key::ArrowUp) {
|
||||
movement = Movement::Up;
|
||||
}
|
||||
}
|
||||
|
||||
// Put here so these key presses don't interact with other elements
|
||||
let enter_pressed = ui.input_mut().consume_key(Modifiers::NONE, Key::Enter);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user