From 9932e855027e6025fbbb4690e426d7b55c2c2f4c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 22 Jun 2011 19:26:13 -0400 Subject: Finish adding support for new Scintilla events; core/events.lua --- core/events.lua | 55 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/core/events.lua b/core/events.lua index 7a3754b8..241aa859 100644 --- a/core/events.lua +++ b/core/events.lua @@ -67,36 +67,44 @@ module('events', package.seeall) -- Called when the user has dragged a URI such as a file name or web address -- into Textadept. -- - text: URI text. +-- * **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. -- * **call\_tip\_click** (position)
-- Called when the user clicks on a calltip. -- - position: 1 if the click is in an up arrow, 2 if in a down arrow, and -- 0 if elsewhere. --- * **auto\_c\_selection** (lParam, text, position)
+-- * **auto\_c\_selection** (text, position)
-- 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. --- - position: the position the list was displayed at. +-- - position: the start position of the word being completed. -- * **indicator\_click** (position, modifiers)
-- Called when the user clicks on an indicator. --- - position: the position in the buffer that the user clicked +-- - 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. +-- Called when the user releases the mouse button after clicking on an +-- indicator. +-- - position: the position in the buffer that the user clicked. +-- * **auto\_c\_cancelled** ()
+-- Called when the user has cancelled the autocompletion list. +-- * **auto\_c\_char\_deleted** ()
+-- Called when the user deleted a character while the autocompletion list was +-- active. +-- * **hotspot\_release\_click** (position)
+-- Called when the user releases the mouse button after clicking on a hotspot. +-- - position: the position in the buffer that the user clicked. -- [buffer_user_list_show]: ../modules/buffer.html#buffer:user_list_show -- @@ -223,14 +231,17 @@ local scnnotifications = { 'user_list_selection', 'wParam', 'text', 'position' }, [c.SCN_URIDROPPED] = { 'uri_dropped', 'text' }, - [c.SCN_CALLTIPCLICK] = { 'call_tip_click', 'position' }, - [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' }, + [c.SCN_CALLTIPCLICK] = { 'call_tip_click', 'position' }, + [c.SCN_AUTOCSELECTION] = { 'auto_c_selection', 'text', 'position' }, + [c.SCN_INDICATORCLICK] = { 'indicator_click', 'position', 'modifiers' }, + [c.SCN_INDICATORRELEASE] = { 'indicator_release', 'position' }, + [c.SCN_AUTOCCANCELLED] = { 'auto_c_cancelled' }, + [c.SCN_AUTOCCHARDELETED] = { 'auto_c_char_deleted' }, + [c.SCN_HOTSPOTRELEASECLICK] = { 'hotspot_release_click', 'position' }, } --- -- cgit v1.2.3