Skip to content

Commit 326cb20

Browse files
authored
improv: confirm entry dialogs with Enter key (#1532)
1 parent 51de386 commit 326cb20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/rnote-ui/src/workspacebrowser/widgethelper.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,14 @@ pub(crate) fn create_entry_dialog(entry: &Entry, label: &Label) -> (Button, Popo
5757
}
5858
));
5959

60+
// listen for enter key on entry
61+
entry.connect_activate(clone!(
62+
#[weak]
63+
apply_button,
64+
move |_| {
65+
apply_button.emit_clicked();
66+
}
67+
));
68+
6069
(apply_button, popover)
6170
}

0 commit comments

Comments
 (0)