aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index de90748f..a5280b76 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -481,6 +481,12 @@ static void win_cb (Fl_Widget *w, void *cb_data) {
CustTabs *tabs = (CustTabs*) cb_data;
int choice = 1, ntabs = tabs->num_tabs();
+ if (Fl::event_key() == FL_Escape) {
+ // Don't let FLTK close a browser window due to unhandled Escape
+ // (most likely with modifiers).
+ return;
+ }
+
if (prefs.show_quit_dialog && ntabs > 1)
choice = a_Dialog_choice5("Dillo: Close window?",
"Window contains more than one tab.",