X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontainer.cpp;h=068986b15aca7b329626974c6349941a8d68422f;hb=6d73e04329fc3752552773e4d11d7374caf779f6;hp=d02cc606394298c612bd7c94142298f88ffaf708;hpb=18a5af8e80903eb9738cefe03825595877fbf447;p=libs%2Fgltk.git diff --git a/source/container.cpp b/source/container.cpp index d02cc60..068986b 100644 --- a/source/container.cpp +++ b/source/container.cpp @@ -272,22 +272,28 @@ void Container::touch_motion(int x, int y, unsigned finger) } } -void Container::key_press(unsigned key, unsigned mod) +bool Container::key_press(unsigned key, unsigned mod) { if(input_focus) - input_focus->key_press(key, mod); + return input_focus->key_press(key, mod); + else + return false; } -void Container::key_release(unsigned key, unsigned mod) +bool Container::key_release(unsigned key, unsigned mod) { if(input_focus) - input_focus->key_release(key, mod); + return input_focus->key_release(key, mod); + else + return false; } -void Container::character(wchar_t ch) +bool Container::character(wchar_t ch) { if(input_focus) - input_focus->character(ch); + return input_focus->character(ch); + else + return false; } void Container::focus_out()