mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
macos: fix AppleScript quit command being silently ignored
The application class in Ghostty.sdef was missing a responds-to declaration for the quit command. Apple's Cocoa Scripting requires the application class to explicitly declare it responds to quit via handleQuitScriptCommand: for the aevtquit event to be dispatched.
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
<responds-to command="perform action">
|
||||
<cocoa method="handlePerformActionScriptCommand:"/>
|
||||
</responds-to>
|
||||
<responds-to command="quit">
|
||||
<cocoa method="handleQuitScriptCommand:"/>
|
||||
</responds-to>
|
||||
|
||||
<element type="window" access="r">
|
||||
<cocoa key="scriptWindows"/>
|
||||
|
||||
Reference in New Issue
Block a user