DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1770
Version: 1.2-feature


This patch works for me (part 1 of RFE, no change to API).


Link: http://www.fltk.org/str.php?L1770
Version: 1.2-feature
--- fltk-1.1/src/Fl_Input_.cxx  2007-06-22 12:26:20.000000000 +0200
+++ fltk-work/src/Fl_Input_.cxx 2007-08-21 09:02:57.000000000 +0200
@@ -692,6 +692,11 @@
 int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
   switch (event) {
 
+  case FL_SHORTCUT:
+    if (!test_shortcut()) return 0;
+    if (Fl::visible_focus() && handle(FL_FOCUS)) Fl::focus(this);
+    return 1;
+
   case FL_ENTER:
   case FL_MOVE:
     if (active_r() && window()) window()->cursor(FL_CURSOR_INSERT);
@@ -809,6 +814,7 @@
   value_ = "";
   xscroll_ = yscroll_ = 0;
   maximum_size_ = 32767;
+  set_flag(SHORTCUT_LABEL);
 }
 
 void Fl_Input_::put_in_buffer(int len) {
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to