aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-03-09 16:49:48 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-03-09 16:49:48 -0400
commit9c7b7745173b826f3ed1c0e3c80b8d632fece31d (patch)
tree110e7e6aa4640a6a4768bf618fffe0fbcf66682c /core/events.lua
parente24247afa394b5fdff0af1e771fda86a1dbf76e2 (diff)
downloadtextadept-9c7b7745173b826f3ed1c0e3c80b8d632fece31d.tar.gz
textadept-9c7b7745173b826f3ed1c0e3c80b8d632fece31d.zip
Stop documenting hotspots since new indicator attributes supplant hotspots.
Scintilla 3.5.4 added "buffer.indic_hover_style" and "buffer.indic_hover_fore", effectively replacing hotspot styles and colors. Lexers were not using hotspot styles anyway -- hotspots could only be used by manually styling text.
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua39
1 files changed, 0 insertions, 39 deletions
diff --git a/core/events.lua b/core/events.lua
index a377a4e8..7d7bdb1d 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -120,40 +120,6 @@ local M = {}
-- @field FOCUS (string)
-- Emitted when Textadept receives focus.
-- This event is never emitted when Textadept is running in the terminal.
--- @field HOTSPOT_CLICK (string)
--- Emitted when clicking on text that is in a style that has the hotspot
--- attribute set.
--- Event handlers should avoid calling any function that modifies the current
--- selection or caret position.
--- Arguments:
---
--- * _`position`_: The clicked text's position.
--- * _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,
--- `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.
--- Note: If you set `buffer.rectangular_selection_modifier` to
--- `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"
--- and "Alt" due to a Scintilla limitation with GTK+.
--- @field HOTSPOT_DOUBLE_CLICK (string)
--- Emitted when double-clicking on text that is in a style that has the
--- hotspot attribute set.
--- Event handlers should avoid calling any function that modifies the current
--- selection or caret position.
--- Arguments:
---
--- * _`position`_: The double-clicked text's position.
--- * _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,
--- `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.
--- Note: If you set `buffer.rectangular_selection_modifier` to
--- `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"
--- and "Alt" due to a Scintilla limitation with GTK+.
--- @field HOTSPOT_RELEASE_CLICK (string)
--- Emitted when releasing the mouse after clicking on text that is in a style
--- that has the hotspot attribute set.
--- Event handlers should avoid calling any function that modifies the current
--- selection or caret position.
--- Arguments:
---
--- * _`position`_: The clicked text's position.
-- @field INDICATOR_CLICK (string)
-- Emitted when clicking the mouse on text that has an indicator present.
-- Arguments:
@@ -367,17 +333,12 @@ local scnotifications = {
[c.SCN_URIDROPPED] = {'uri_dropped', 'text'},
[c.SCN_DWELLSTART] = {'dwell_start', 'position', 'x', 'y'},
[c.SCN_DWELLEND] = {'dwell_end', 'position', 'x', 'y'},
- [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'},
}
-- Handles Scintilla notifications.