diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-12-30 14:11:04 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-12-30 14:11:04 +0000 |
| commit | 0ea6761db282d3354fd4a5465785c26071aad6a9 (patch) | |
| tree | ecd97be87f1393e7f34600cf3c3cddba32a96289 /fluid | |
| parent | 5c4e1336ba5004897e3407599be803fc1fa8785e (diff) | |
- Fixed keyboard shortcut handling in FLUID and shortcut
labeling in FLTK (STR #1129)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Menu_Type.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index a99187093..5d3295072 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -534,6 +534,10 @@ int Shortcut_Button::handle(int e) { if (!value()) return 0; int v = Fl::event_text()[0]; if (v > 32 && v < 0x7f || v > 0xa0 && v <= 0xff) { + if (isupper(v)) { + v = tolower(v); + v |= FL_SHIFT; + } v = v | Fl::event_state()&(FL_META|FL_ALT|FL_CTRL); } else { v = Fl::event_state()&(FL_META|FL_ALT|FL_CTRL|FL_SHIFT) | Fl::event_key(); |
