diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-02-29 21:54:55 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-02-29 21:54:55 +0000 |
| commit | 443c4883cc5aa9d254943f0b1965796a9ef521a7 (patch) | |
| tree | ab94e1f668e2cfbbf5ca7d87fb6abf7b1cd33178 /src | |
| parent | cd2d7cc7ee90ffbb8db105b40023d7db1aad44d3 (diff) | |
Fl::compose() wasn't ignoring control chars (like Delete :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_compose.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_compose.cxx b/src/Fl_compose.cxx index 92fa1467b..44526ce8c 100644 --- a/src/Fl_compose.cxx +++ b/src/Fl_compose.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_compose.cxx,v 1.1.2.1 2000/02/21 10:29:59 bill Exp $" +// "$Id: Fl_compose.cxx,v 1.1.2.2 2000/02/29 21:54:55 mike Exp $" // // Character compose processing for the Fast Light Tool Kit (FLTK). // @@ -64,6 +64,9 @@ int Fl::compose(int& del) { del = 0; char ascii = e_text[0]; + // The Delete and other special keys should not be composed... + if (ascii < 32 || ascii == 127) return 0; + // Alt+letters are reserved for shortcuts. But alt+foreign letters // has to be allowed, because some key layouts require alt to be held // down in order to type them... |
