mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Bind enter
and shift-enter
in FindBar
This commit is contained in:
parent
e8105c9a99
commit
2a1b1adfab
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue