aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-09-23 14:09:16 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-09-23 14:09:16 -0400
commit80273cd17e8d0b39670c1618a98848a9540e071d (patch)
tree262a51080816d02ec21ab533c595ee3d070e19aa /core/events.lua
parent8e30b52bf0da10e091e2d8b93fa362186cc625fe (diff)
downloadtextadept-80273cd17e8d0b39670c1618a98848a9540e071d.tar.gz
textadept-80273cd17e8d0b39670c1618a98848a9540e071d.zip
Added dynamically defined GTK menus and menubar.
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua5
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)