diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-05 19:23:19 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-05 19:23:19 +0000 |
| commit | b066dea55d7ef7b0af510d6fe22f37a6f30f1474 (patch) | |
| tree | e6f8702b78cebb076760cd9480d8f8febd62a1f3 /src | |
| parent | c3a5b61223164ad75eb421bd144338b2714d943b (diff) | |
The keyboard shortcut handling code did not handle 8-bit
characters properly (STR #731)
src/Fl.cxx:
- Fl::handle(): use unsigned char * for event_text()
shortcut key conversion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 6fe61c039..86031d5b2 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -708,7 +708,7 @@ int Fl::handle(int e, Fl_Window* window) // and then try a shortcut with the case of the text swapped, by // changing the text and falling through to FL_SHORTCUT case: - {char* c = (char*)event_text(); // cast away const + {unsigned char* c = (unsigned char*)event_text(); // cast away const if (!isalpha(*c)) return 0; *c = isupper(*c) ? tolower(*c) : toupper(*c);} e_number = e = FL_SHORTCUT; |
