]> 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 557e10153269c2290bc8c6c4e938fc95c8284874..f852ec354f4874c75bf91945090ab4330c9bc342 100644 (file)
@@ -136,12 +136,12 @@ public:
        virtual void pointer_motion(int, int) { }
        virtual void pointer_enter();
        virtual void pointer_leave();
-       virtual void key_press(unsigned, unsigned) { }
-       virtual void key_release(unsigned, unsigned) { }
-       virtual void character(wchar_t) { }
        virtual void touch_press(int, int, unsigned);
        virtual void touch_release(int, int, unsigned);
        virtual void touch_motion(int, int, unsigned);
+       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: