From 16a3a9f88d129656a7cffea01811932ac38b2185 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 6 Jun 2011 02:48:55 -0400 Subject: Add support for indicator and hotspot events from Brian; core/events.lua --- core/events.lua | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'core/events.lua') diff --git a/core/events.lua b/core/events.lua index d54c0627..9e866b80 100644 --- a/core/events.lua +++ b/core/events.lua @@ -71,7 +71,28 @@ module('events', package.seeall) -- Called when the user has selected an item in an autocompletion list. -- - lParam: the start position of the word being completed. -- - text: the text of the selection. --- +-- * **indicator\_click** (position, modifiers)
+-- Called when the user clicks on an indicator. +-- - position: the position in the buffer that the user clicked +-- - modifiers: the appropriate combination of `SCI_SHIFT`, `SCI_CTRL`, +-- and `SCI_ALT` to indicate the keys that were held down at the time of +-- the indicator click. +-- * **indicator\_release** (position)
+-- Called when the user releases the mouse button after clicking on an indicator +-- - position: the position in the buffer that the user clicked +-- * **hotspot\_click** (position, modifiers)
+-- Called when the user clicks on a hotspot +-- - position: the position in the buffer that the user clicked +-- - modifiers: the appropriate combination of `SCI_SHIFT`, `SCI_CTRL`, +-- and `SCI_ALT` to indicate the keys that were held down at the time of +-- the hotspot click. +-- * **hotspot\_double\_click** (position, modifiers)
+-- Called when the user double-clicks on a hotspot +-- - position: the position in the buffer that the user double-clicked +-- - modifiers: the appropriate combination of `SCI_SHIFT`, `SCI_CTRL`, +-- and `SCI_ALT` to indicate the keys that were held down at the time of +-- the hotspot double-click. + -- [buffer_user_list_show]: ../modules/buffer.html#buffer:user_list_show -- -- The following is a list of gui events generated in @@ -196,7 +217,11 @@ local scnnotifications = { [c.SCN_USERLISTSELECTION] = { 'user_list_selection', 'wParam', 'text' }, [c.SCN_URIDROPPED] = { 'uri_dropped', 'text' }, [c.SCN_CALLTIPCLICK] = { 'call_tip_click', 'position' }, - [c.SCN_AUTOCSELECTION] = { 'auto_c_selection', 'lParam', 'text' } + [c.SCN_AUTOCSELECTION] = { 'auto_c_selection', 'lParam', 'text' }, + [c.SCN_INDICATORCLICK] = { 'indicator_click', 'position', 'modifiers' }, + [c.SCN_INDICATORRELEASE] = { 'indicator_release', 'position' }, + [c.SCN_HOTSPOTCLICK] = { 'hotspot_click', 'position', 'modifiers' }, + [c.SCN_HOTSPOTDOUBLECLICK] = { 'hotspot_double_click', 'position', 'modifiers' }, } --- -- cgit v1.2.3