summaryrefslogtreecommitdiff
path: root/src/Fl_get_key.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_get_key.cxx')
-rw-r--r--src/Fl_get_key.cxx5
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 $".
//