From 2a1b1adfabc3dc413d6d88e3e2597e040fca6b00 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sun, 30 Jan 2022 15:20:57 +0100 Subject: [PATCH] Bind `enter` and `shift-enter` in `FindBar` --- crates/find/src/find.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/find/src/find.rs b/crates/find/src/find.rs index 6b8a061892..6c5aaec8a1 100644 --- a/crates/find/src/find.rs +++ b/crates/find/src/find.rs @@ -38,6 +38,8 @@ pub fn init(cx: &mut MutableAppContext) { cx.add_bindings([ Binding::new("cmd-f", Deploy, Some("Editor && mode == full")), Binding::new("escape", Cancel, Some("FindBar")), + Binding::new("enter", GoToMatch(Direction::Next), Some("FindBar")), + Binding::new("shift-enter", GoToMatch(Direction::Prev), Some("FindBar")), ]); cx.add_action(FindBar::deploy); cx.add_action(FindBar::cancel);