mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-09-20 20:48:06 +00:00
macOS: fix AppleScript send key for non-control keys
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user