]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/widget.h
Make keyboard event handlers indicate whether the event was handled
[libs/gltk.git] / source / widget.h
index 2bf751a714f0db3a25bc45015894181fe3c96562..f852ec354f4874c75bf91945090ab4330c9bc342 100644 (file)
@@ -139,9 +139,9 @@ public:
        virtual void touch_press(int, int, unsigned);
        virtual void touch_release(int, int, unsigned);
        virtual void touch_motion(int, int, unsigned);
-       virtual void key_press(unsigned, unsigned) { }
-       virtual void key_release(unsigned, unsigned) { }
-       virtual void character(wchar_t) { }
+       virtual bool key_press(unsigned, unsigned) { return false; }
+       virtual bool key_release(unsigned, unsigned) { return false; }
+       virtual bool character(wchar_t) { return false; }
        virtual void focus_in();
        virtual void focus_out();
 protected: