diff options
| author | Greg Ercolano <erco@seriss.com> | 2015-03-10 14:46:40 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2015-03-10 14:46:40 +0000 |
| commit | cc2436954d9c281b2a0589e5fc3fe89fa9d4aede (patch) | |
| tree | 44bc3e47da34eb63da9517b9bd581603547cbd38 /src | |
| parent | faad46f94552e391fe44b5bb3888cacaaa4e99b8 (diff) | |
Fixes STR#3207, issue with ^C not working when numlock or capslock is on.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Help_View.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index aaa9b829d..d0c09f1a7 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -3003,7 +3003,8 @@ Fl_Help_View::handle(int event) // I - Event to handle } return 1; case FL_SHORTCUT: { - if (Fl::event_state() == FL_COMMAND) { + int mods = Fl::event_state() & (FL_META|FL_CTRL|FL_ALT|FL_SHIFT); + if ( mods == FL_COMMAND) { switch ( Fl::event_key() ) { case 'a': select_all(); redraw(); return 1; case 'c': |
