Focus checks are done before handling text inputs. In offscreen
mode, |content_image_| is used, which is inexistant in onscreen
mode. This patch instead checks for focus from RWHVAura which
retrieves it from aura::window
refer:
https://review.tizen.org/gerrit/#/c/291112
Change-Id: Id84a2a365829f7e8533e4cc3dbad770242450e36
Signed-off-by: fangfengrong <fr.fang@samsung.com>
return;
}
+ bool is_not_showing = !rwhv_aura_->IsShowing();
#if BUILDFLAG(IS_TIZEN_TV)
- if (!rwhv_aura_->IsShowing() || !HasFocus())
+ bool is_not_focused =
+ IsOffscreenMode() ? !HasFocus() : !rwhv_aura_->HasFocus();
+ if (is_not_showing || is_not_focused)
#else
- if (!rwhv_aura_->IsShowing())
+ if (is_not_showing)
#endif
return;