diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2003-04-03 04:28:15 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2003-04-03 04:28:15 +0000 |
| commit | 7903799bf2ece8f5fdb760c507c1e64ce8418b97 (patch) | |
| tree | bbca22ac108e37d07b3868ce0571b445d77ce018 /src/Fl_get_key.cxx | |
| parent | 14b142f7a8fc71d2b3089bf02711d9831dfaafdf (diff) | |
- sorted fluid menu bar
- fixed some minor Valgrind memory checker complaints
- added conditional compile flag for OS X w/ MetroWerks compiler
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_get_key.cxx')
| -rw-r--r-- | src/Fl_get_key.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_get_key.cxx b/src/Fl_get_key.cxx index 3b64ce15a..62e0aa6ef 100644 --- a/src/Fl_get_key.cxx +++ b/src/Fl_get_key.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_get_key.cxx,v 1.5.2.3.2.4 2003/01/30 21:43:04 easysw Exp $" +// "$Id: Fl_get_key.cxx,v 1.5.2.3.2.5 2003/04/03 04:28:15 matthiaswm Exp $" // // Keyboard state routines for the Fast Light Tool Kit (FLTK). // @@ -50,6 +50,7 @@ int Fl::event_key(int k) { else # endif i = XKeysymToKeycode(fl_display, k); + if (i==0) return 0; return fl_key_vector[i/8] & (1 << (i%8)); } @@ -62,5 +63,5 @@ int Fl::get_key(int k) { #endif // -// End of "$Id: Fl_get_key.cxx,v 1.5.2.3.2.4 2003/01/30 21:43:04 easysw Exp $". +// End of "$Id: Fl_get_key.cxx,v 1.5.2.3.2.5 2003/04/03 04:28:15 matthiaswm Exp $". // |
