diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/events.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/events.lua b/core/events.lua index e4140c9e..bfd5ef09 100644 --- a/core/events.lua +++ b/core/events.lua @@ -60,6 +60,8 @@ module('textadept.events', package.seeall) -- shift: flag indicating whether or not shift is pressed. -- control: flag indicating whether or not control is pressed. -- alt: flag indicating whether or not alt is pressed. +-- menu_clicked(menu_item) +-- menu_item: text of the menu item clicked. local events = textadept.events @@ -130,6 +132,9 @@ end function keypress(code, shift, control, alt) return handle('keypress', code, shift, control, alt) end +function menu_clicked(menu_item) + return handle('menu_clicked', menu_item) +end -- Scintilla notifications. function char_added(n) |