bool Container::key_press(unsigned key, unsigned mod)
{
- if(input_focus)
+ if(input_focus && input_focus->is_enabled())
return input_focus->key_press(key, mod);
else
return false;
bool Container::key_release(unsigned key, unsigned mod)
{
- if(input_focus)
+ if(input_focus && input_focus->is_enabled())
return input_focus->key_release(key, mod);
else
return false;
bool Container::character(wchar_t ch)
{
- if(input_focus)
+ if(input_focus && input_focus->is_enabled())
return input_focus->character(ch);
else
return false;
bool Container::navigate(Navigation nav)
{
- if(input_focus)
+ if(input_focus && input_focus->is_enabled())
return input_focus->navigate(nav);
else
return false;