native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(cli-key): emit ANSI control characters for ctrl-shift combos

onevcat e06eb92d f96dc0a1

+8 -1
+8 -1
supacode/Infrastructure/Ghostty/GhosttySurfaceView.swift
··· 1892 1892 1893 1893 let charactersIgnoringModifiers = base.charactersIgnoringModifiers 1894 1894 let characters: String 1895 - if descriptor.modifiers == [.ctrl], let controlCharacter = controlCharacter(for: descriptor.baseToken) { 1895 + if usesControlCharacter(for: descriptor.modifiers), 1896 + let controlCharacter = controlCharacter(for: descriptor.baseToken) 1897 + { 1896 1898 characters = controlCharacter 1897 1899 } else if descriptor.modifiers.contains(.shift) { 1898 1900 characters = shiftedCharacters(for: descriptor.baseToken) ?? charactersIgnoringModifiers ··· 2142 2144 } 2143 2145 2144 2146 return shiftedCharacterMap[token] 2147 + } 2148 + 2149 + private static func usesControlCharacter(for modifiers: [KeyModifier]) -> Bool { 2150 + let modifierSet = Set(modifiers) 2151 + return modifierSet.contains(.ctrl) && modifierSet.isSubset(of: [.ctrl, .shift]) 2145 2152 } 2146 2153 2147 2154 private static func controlCharacter(for token: String) -> String? {