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:
parent
f9a66ecaed
commit
d6255fb3d2
1 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue