macOS: fix AppleScript send key for non-control keys

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-08-25 10:10:16 +02:00
parent 9c3ec931d6
commit 6229d4eb62
8 changed files with 228 additions and 76 deletions

View File

@@ -33,7 +33,9 @@ final class ScriptKeyEventCommand: NSScriptCommand {
do {
keyEvent = try Self.parse(
directParameter: directParameter,
evaluatedArguments: evaluatedArguments)
evaluatedArguments: evaluatedArguments,
translationMods: surface.keyTranslationMods,
)
} catch ArgumentError.missingKey {
scriptErrorNumber = errAEParamMissed
scriptErrorString = "Missing key name."
@@ -108,9 +110,10 @@ extension ScriptKeyEventCommand {
}
return Ghostty.Input.KeyEvent(
key: key,
synthesizing: key,
action: action,
mods: mods,
translationMods: translationMods(mods),
)
}
}