Fixing stuff

This commit is contained in:
2026-09-30 15:18:42 +02:00
parent 2925127110
commit 8fafea4fc3
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import HelderCore
/// first responder when it names them.
public enum FocusTarget: Equatable, Sendable {
case panel(Panel)
/// ⌘C without a selection: the commit message field.
/// ⌘C without a selection, outside a terminal: the commit message field.
case commitMessage
}
@@ -114,7 +114,7 @@ public enum Command: Equatable, Sendable {
case commit
/// ⌘P
case push
/// ⌘C without a selection
/// ⌘C without a selection, outside a terminal
case focusCommitMessage
// MARK: Note
+1 -1
View File
@@ -186,7 +186,7 @@ public enum KeyRouter {
case ".": return .perform(.toggleHidden)
case "a": return context.owner == .workspace ? .perform(.selectAllInFile) : .pass
case "c":
if context.hasTextSelection || context.hasEditorLineSelection { return .pass }
if context.owner == .terminal || context.hasTextSelection || context.hasEditorLineSelection { return .pass }
return .perform(.focusCommitMessage)
default: return .pass
}