Skip to content

Commit 904b1b3

Browse files
committed
stop event propagation
1 parent ebbaabb commit 904b1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/gui/src/components/term.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ pub fn Terminal(value: Signal<String>) -> Element {
8080
prev_candidate()
8181
}
8282
if e.key() == Key::Enter && !candidates().is_empty() {
83+
e.prevent_default();
84+
e.stop_propagation();
8385
insert_selected_candidate()
8486
}
8587
if e.key() == Key::Escape {

0 commit comments

Comments
 (0)