diff options
author | 2015-03-09 21:57:30 -0400 | |
---|---|---|
committer | 2015-03-09 21:57:30 -0400 | |
commit | b039c80fcc02c7ba5fcc8a4a17ca9c21c88d889c (patch) | |
tree | cb969687df115e6b313b295077192b36d4416f5f /src | |
parent | 9c7b7745173b826f3ed1c0e3c80b8d632fece31d (diff) | |
download | textadept-b039c80fcc02c7ba5fcc8a4a17ca9c21c88d889c.tar.gz textadept-b039c80fcc02c7ba5fcc8a4a17ca9c21c88d889c.zip |
Fixed accidental firing of "Escape" key on window focus lost; src/textadept.c
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index a3e4b4ee..164c53dc 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2248,7 +2248,9 @@ static GtkWidget *new_findbox() { */ static int wc_focusout(GtkWidget *widget, GdkEvent*_, void*__) { if (widget == window && command_entry_focused) return TRUE; - return (lL_event(lua, "keypress", LUA_TNUMBER, GDK_Escape, -1), FALSE); + if (widget == command_entry) + lL_event(lua, "keypress", LUA_TNUMBER, GDK_Escape, -1); + return FALSE; } #endif // if GTK |