Author: greg.ercolano
Date: 2010-12-12 13:29:02 -0800 (Sun, 12 Dec 2010)
New Revision: 8020
Log:
Fix STR#2477; problem with SHIFT-DEL not doing copy() operation.



Modified:
   branches/branch-1.3/src/Fl_Input.cxx

Modified: branches/branch-1.3/src/Fl_Input.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Input.cxx        2010-12-12 20:06:04 UTC (rev 
8019)
+++ branches/branch-1.3/src/Fl_Input.cxx        2010-12-12 21:29:02 UTC (rev 
8020)
@@ -164,11 +164,12 @@
         return 1;
       } else return 1;
 #else
-      if (mods==0) {
-        ascii = ctrl('D'); 
-      } else if (mods==FL_SHIFT) {
-        ascii = ctrl('X');
-      } else return 1;
+      if (mods) return 1;              // Alt-Del/Ctrl-Del/Meta-Del: do 
nothing 
+      if (Fl::event_state() & FL_SHIFT) {
+       ascii = ctrl('X');              // Shift-Del -> ^X
+      } else {
+       ascii = ctrl('D');              // Del -> ^D
+      }
 #endif
       break;
     case FL_Left:

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to