aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-06-20 12:02:35 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-06-20 12:02:35 -0400
commit5b292b2408f24479b8ce5eb4d8a295a559bf8481 (patch)
treed39e8eda6d4f5dc2bcf741b0fd3c5492b2ce20f3 /src/textadept.c
parenta9f6d85ead8c83ce210e5ffb05f84361e029f419 (diff)
downloadtextadept-5b292b2408f24479b8ce5eb4d8a295a559bf8481.tar.gz
textadept-5b292b2408f24479b8ce5eb4d8a295a559bf8481.zip
Added `event.FOCUS` for when Textadept's window receives focus.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index bbf86d98..31959e2c 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1687,7 +1687,7 @@ static int lL_init(lua_State *L, int argc, char **argv, int reinit) {
static int w_focus(GtkWidget*_, GdkEventFocus*__, void*___) {
if (focused_view && !gtk_widget_has_focus(focused_view))
gtk_widget_grab_focus(focused_view);
- return FALSE;
+ return (lL_event(lua, "focus", -1), FALSE);
}
/** Signal for a Textadept keypress. */