From 7ca978b94e4dec399453758b4ff98d19321159f2 Mon Sep 17 00:00:00 2001 From: Jens Witte Date: Wed, 17 Sep 2025 19:27:57 +0200 Subject: [PATCH] feat: emit apply_button click on enter in entry dialogs --- crates/rnote-ui/src/workspacebrowser/widgethelper.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/rnote-ui/src/workspacebrowser/widgethelper.rs b/crates/rnote-ui/src/workspacebrowser/widgethelper.rs index 26e381b6f7..4a96539cf3 100644 --- a/crates/rnote-ui/src/workspacebrowser/widgethelper.rs +++ b/crates/rnote-ui/src/workspacebrowser/widgethelper.rs @@ -57,5 +57,14 @@ pub(crate) fn create_entry_dialog(entry: &Entry, label: &Label) -> (Button, Popo } )); + // listen for enter key on entry + entry.connect_activate(clone!( + #[weak] + apply_button, + move |_| { + apply_button.emit_clicked(); + } + )); + (apply_button, popover) }