elc_naviframe: set focus to new view immediately only for item push 62/143762/1 accepted/tizen/3.0/common/20170816.145158 accepted/tizen/3.0/ivi/20170816.131253 accepted/tizen/3.0/mobile/20170816.131228 accepted/tizen/3.0/tv/20170816.131138 accepted/tizen/3.0/wearable/20170816.131152 submit/tizen_3.0/20170816.054926
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 11 Aug 2017 07:06:48 +0000 (16:06 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 11 Aug 2017 07:07:51 +0000 (16:07 +0900)
commitd84694c8e31e50290f7dbc4878398384cb5e4218
tree27bbbebe13f64d80d6068e517142e9df084915df
parente699b9140fc52a810e237148ea2dd1dfa0371587
elc_naviframe: set focus to new view immediately only for item push

Set focus to new item view immediately when new item is pushed to show
keypad fast. Otherwise, focus of new item view is set late and keypad is
shown late.

Setting focus to item view immediately is applied to item push only.
Because if this concept is applied to item pop, then the following focus
issue happens.

Reproduction path of the item pop focus issue
1. Naviframe first item view consists of two objects.
   Focus is in the second object of the first item view.
2. Naviframe push happens. (now two item views)
3. Popup appears and it gets the focus.
4. Popup button click pops the second naviframe item.
5. Focus goes to the naviframe and focus_next happens.
6. Focus is set to the first object of the first item view.
   (not to the second object of the first item view)

Change-Id: I1940831dbd9ce0cf8efcd6b2172203fa1ee277fc
src/lib/elc_naviframe.c