Author: manolo
Date: 2012-12-16 02:19:49 -0800 (Sun, 16 Dec 2012)
New Revision: 9758
Log:
Mac OS text input: handle modifier keys after dead key.
Modified:
branches/branch-1.3/src/Fl_compose.cxx
Modified: branches/branch-1.3/src/Fl_compose.cxx
===================================================================
--- branches/branch-1.3/src/Fl_compose.cxx 2012-12-15 22:03:55 UTC (rev
9757)
+++ branches/branch-1.3/src/Fl_compose.cxx 2012-12-16 10:19:49 UTC (rev
9758)
@@ -51,7 +51,9 @@
#if defined(__APPLE__)
int has_text_key = Fl::compose_state || Fl::e_keysym <= '~' || Fl::e_keysym
== FL_Iso_Key ||
(Fl::e_keysym >= FL_KP && Fl::e_keysym <= FL_KP_Last && Fl::e_keysym !=
FL_KP_Enter);
- if ( Fl::e_state&(FL_META | FL_CTRL) || !has_text_key ) {
+ if ( Fl::e_state&(FL_META | FL_CTRL) ||
+ (Fl::e_keysym >= FL_Shift_L && Fl::e_keysym <= FL_Alt_R) || // called
from flagsChanged
+ !has_text_key ) {
// this stuff is to be treated as a function key
return 0;
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit