GtkEventControllerKey can handle GDK_FOCUS_CHANGE and call gtk_im_context_focus_in/out directly. #2390