changeset 2718:8265fff097f0

don't let the view have ctrl-tab
author corvid <corvid@lavabit.com>
date Fri, 28 Dec 2012 17:12:30 +0000
parents 20a26b8bb366
children 4daac8a8088e 0ff3ea14d6d0
files dw/fltkviewbase.cc
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.cc	Wed Dec 26 23:31:48 2012 +0100
+++ b/dw/fltkviewbase.cc	Fri Dec 28 17:12:30 2012 +0000
@@ -367,8 +367,13 @@
       focused_child = fl_oldfocus;
       return 0;
    case FL_KEYBOARD:
-      if (Fl::event_key() == FL_Tab)
-         return manageTabToFocus();
+      if (Fl::event_key() == FL_Tab) {
+         if (Fl::event_ctrl()) {
+            // the UI will handle it
+            return 0;
+         } else
+            return manageTabToFocus();
+      }
       break;
    default:
       break;