From 80273cd17e8d0b39670c1618a98848a9540e071d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 23 Sep 2007 14:09:16 -0400 Subject: Added dynamically defined GTK menus and menubar. --- core/events.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/events.lua') 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) -- cgit v1.2.3