macos: implement key sequence UI

This commit is contained in:
Mitchell Hashimoto
2024-10-08 21:54:22 -07:00
parent 5c1ffbb642
commit 8994a8c627
6 changed files with 149 additions and 48 deletions

View File

@@ -262,7 +262,12 @@ extension Ghostty.Notification {
/// Notification that renderer health changed
static let didUpdateRendererHealth = Notification.Name("com.mitchellh.ghostty.didUpdateRendererHealth")
/// Notifications related to key sequences
static let didContinueKeySequence = Notification.Name("com.mitchellh.ghostty.didContinueKeySequence")
static let didEndKeySequence = Notification.Name("com.mitchellh.ghostty.didEndKeySequence")
static let KeySequenceKey = didContinueKeySequence.rawValue + ".key"
}
// Make the input enum hashable.
extension ghostty_input_key_e : Hashable {}
extension ghostty_input_key_e : @retroactive Hashable {}