-bool Root::key_press_event(unsigned key)
-{
- // XXX Modifiers
- if(visible)
- {
- Widget *old_focus = input_focus;
-
- key_press(key, 0);
-
- if(input_focus || old_focus)
- return true;
- }
-
- return false;
-}
-
-bool Root::key_release_event(unsigned key)
-{
- if(visible)
- {
- Widget *old_focus = input_focus;
-
- key_release(key, 0);
-
- if(input_focus || old_focus)
- return true;
- }
-
- return false;
-}
-
-bool Root::character_event(StringCodec::unichar ch)
-{
- if(visible)
- {
- Widget *old_focus = input_focus;
-
- character(ch);
-
- if(input_focus || old_focus)
- return true;
- }
-
- return false;
-}
-