git: Prevent up and down motions leaking out of the commit editor (cherry-pick #26501) (#26509)

gcp-cherry-pick-bot[bot] created

Change summary

crates/git_ui/src/git_panel.rs | 6 ++++++
1 file changed, 6 insertions(+)

Detailed changes

crates/git_ui/src/git_panel.rs 🔗

@@ -2757,6 +2757,12 @@ impl GitPanel {
                     .child(
                         div()
                             .pr_2p5()
+                            .on_action(|&editor::actions::MoveUp, _, cx| {
+                                cx.stop_propagation();
+                            })
+                            .on_action(|&editor::actions::MoveDown, _, cx| {
+                                cx.stop_propagation();
+                            })
                             .child(EditorElement::new(&self.commit_editor, panel_editor_style)),
                     )
                     .child(