diff options
-rw-r--r-- | src/textadept.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index cd823e86..62053c11 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -506,7 +506,8 @@ static gbool w_focus(GtkWidget*, GdkEventFocus*, gpointer) { * - Escape - hides the search frame if it's open. */ static gbool w_keypress(GtkWidget*, GdkEventKey *event, gpointer) { - if (event->keyval == 0xff1b && GTK_WIDGET_VISIBLE(findbox)) { + if (event->keyval == 0xff1b && GTK_WIDGET_VISIBLE(findbox) && + !GTK_WIDGET_HAS_FOCUS(command_entry)) { gtk_widget_hide(findbox); gtk_widget_grab_focus(focused_editor); return TRUE; |