Git: Fix Linux bindings (#25486)

- Tooltip with binding wasn't showing up
- Missing Linux bindings
- Commit modal wasn't opening when binding was pressed

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
João Marcos 2025-02-24 15:49:17 -03:00 committed by GitHub
parent b2921bd3fd
commit ec7ce41324
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 18 deletions

View file

@ -1059,17 +1059,15 @@ impl GitPanel {
}
}
/// Commit all staged changes
fn commit(&mut self, _: &git::Commit, window: &mut Window, cx: &mut Context<Self>) {
let editor = self.commit_editor.read(cx);
if editor.is_empty(cx) {
if !editor.focus_handle(cx).contains_focused(window, cx) {
editor.focus_handle(cx).focus(window);
return;
}
if self
.commit_editor
.focus_handle(cx)
.contains_focused(window, cx)
{
self.commit_changes(window, cx)
}
self.commit_changes(window, cx)
cx.propagate();
}
pub(crate) fn commit_changes(&mut self, window: &mut Window, cx: &mut Context<Self>) {