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:
Mitchell Hashimoto
2026-03-06 08:03:13 -08:00
parent 341d8bdf75
commit f72d41675b

View File

@@ -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"/>