46
46
void mia::InputTargeter::focus_cleared()
48
48
droidinput::sp<droidinput::InputWindowHandle> null_window = nullptr;
50
50
input_dispatcher->setKeyboardFocus(null_window);
53
53
void mia::InputTargeter::focus_changed(std::shared_ptr<mi::InputChannel const> const& focus_channel)
55
55
auto window_handle = repository->handle_for_channel(focus_channel);
57
57
if (window_handle == NULL)
58
58
BOOST_THROW_EXCEPTION(std::logic_error("Attempt to set keyboard focus to an unregistered input channel"));
60
60
input_dispatcher->setKeyboardFocus(window_handle);