From f69e5829f6882dffb09be510c0eedeaeece59d1f Mon Sep 17 00:00:00 2001 From: Rui Guo Date: Fri, 12 Jun 2009 21:20:52 +0800 Subject: [PATCH] Description about the global detach event. --- src/drafts/scripting | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/drafts/scripting b/src/drafts/scripting index 44ee3a0..b69bfec 100644 --- a/src/drafts/scripting +++ b/src/drafts/scripting @@ -288,8 +288,13 @@ or obj:unhook(ticket, handler) Events: -------- cmdexecuted -detached +detached (display, is_remote) +For detach-events, it's not enough to just listen to 'cmdexecuted' +command, since this command is not used for remote detaches. So +scripts looking to do something on a detach event need to hook to +this event, instead of hooking to 'cmdexecuted' event and looking +for 'detach' command. =================== The Implementation -- 2.11.4.GIT