From fcf078c25d81ca2a9b75f6baec18ce7eb477a8f3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 1 Nov 2008 17:44:57 -0400 Subject: Added support for some AppleEvents, use Scintilla namespace on OSX. --- core/events.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/events.lua') diff --git a/core/events.lua b/core/events.lua index 48575b8e..451e3af1 100644 --- a/core/events.lua +++ b/core/events.lua @@ -521,6 +521,11 @@ add_handler('quit', return true end) +if MAC then + function appleevent_odoc(uri) return handle('appleevent_odoc', uri) end + add_handler('appleevent_odoc', function(uri) textadept.io.open(uri) end) +end + --- -- Default error handler. -- Opens a new buffer (if one hasn't already been opened) for printing errors. -- cgit v1.2.3