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

Closes #ISSUE

Release Notes:

- Git Beta: fixed an issue where pressing `up` or `down` in the git
panel's commit message editor would change the selected status entry
This commit is contained in:
Cole Miller 2025-03-12 00:01:08 -04:00 committed by GitHub
parent f9a66ecaed
commit d6255fb3d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2825,6 +2825,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(