Author: manolo Date: 2010-11-29 11:26:11 -0800 (Mon, 29 Nov 2010) New Revision: 7914 Log: Fixes STR #2344: SHIFT+ALT+A triggers correctly when caps-lock is on.
Modified: branches/branch-1.3/src/fl_shortcut.cxx Modified: branches/branch-1.3/src/fl_shortcut.cxx =================================================================== --- branches/branch-1.3/src/fl_shortcut.cxx 2010-11-29 18:18:27 UTC (rev 7913) +++ branches/branch-1.3/src/fl_shortcut.cxx 2010-11-29 19:26:11 UTC (rev 7914) @@ -83,7 +83,7 @@ // try matching utf8, ignore shift: unsigned int firstChar = fl_utf8decode(Fl::event_text(), Fl::event_text()+Fl::event_length(), 0); - if (key==firstChar) return 1; + if ( ! (FL_CAPS_LOCK&shift) && key==firstChar) return 1; // kludge so that Ctrl+'_' works (as opposed to Ctrl+'^_'): if ((shift&FL_CTRL) && key >= 0x3f && key <= 0x5F _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
