From 35824157547d627838b3506ddbfd20a8015003b8 Mon Sep 17 00:00:00 2001
From: mitchell <70453897+667e-11@users.noreply.github.com>
Date: Mon, 20 Jun 2011 23:34:00 -0400
Subject: Updated to Scintilla 2.27.
---
core/events.lua | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
(limited to 'core/events.lua')
diff --git a/core/events.lua b/core/events.lua
index 9e866b80..7a3754b8 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -39,8 +39,11 @@ module('events', package.seeall)
-- Called when a save point is entered.
-- * **save\_point\_left** ()
-- Called when a save point is left.
--- * **double\_click** (position, line)
+-- * **double\_click** (modifiers, position, line)
-- Called when the mouse button is 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 double click.
-- - position: the text position the click occured at.
-- - line: the line number the click occured at.
-- * **update\_ui** ()
@@ -54,11 +57,12 @@ module('events', package.seeall)
-- the margin click.
-- - position: The position of the start of the line in the buffer that
-- corresponds to the margin click.
--- * **user\_list\_selection** (wParam, text)
+-- * **user\_list\_selection** (wParam, text, position)
-- Called when the user has selected an item in a user list.
-- - wParam: the list_type parameter from
-- [`buffer:user_list_show()`][buffer_user_list_show].
-- - text: the text of the selection.
+-- - position: the position the list was displayed at.
-- * **uri\_dropped** (text)
-- Called when the user has dragged a URI such as a file name or web address
-- into Textadept.
@@ -67,10 +71,11 @@ module('events', package.seeall)
-- 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)
+-- * **auto\_c\_selection** (lParam, 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.
-- * **indicator\_click** (position, modifiers)
-- Called when the user clicks on an indicator.
-- - position: the position in the buffer that the user clicked
@@ -211,17 +216,21 @@ local scnnotifications = {
[c.SCN_CHARADDED] = { 'char_added', 'ch' },
[c.SCN_SAVEPOINTREACHED] = { 'save_point_reached' },
[c.SCN_SAVEPOINTLEFT] = { 'save_point_left' },
- [c.SCN_DOUBLECLICK] = { 'double_click', 'position', 'line' },
+ [c.SCN_DOUBLECLICK] = { 'double_click', 'modifiers', 'position', 'line' },
[c.SCN_UPDATEUI] = { 'update_ui' },
[c.SCN_MARGINCLICK] = { 'margin_click', 'margin', 'modifiers', 'position' },
- [c.SCN_USERLISTSELECTION] = { 'user_list_selection', 'wParam', 'text' },
+ [c.SCN_USERLISTSELECTION] = {
+ '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_HOTSPOTDOUBLECLICK] = {
+ 'hotspot_double_click', 'position', 'modifiers'
+ },
}
---
--
cgit v1.2.3