Fixing stuff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user