Skip to content

Commit

Permalink
Fixes STR #2344: SHIFT+ALT+A triggers correctly when caps-lock is on.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Nov 29, 2010
1 parent 4327734 commit 011e955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fl_shortcut.cxx
Expand Up @@ -83,7 +83,7 @@ int Fl::test_shortcut(unsigned int shortcut) {

// 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
Expand Down

0 comments on commit 011e955

Please sign in to comment.