elc_naviframe: set focus to new view immediately only for item push 63/143763/1 accepted/tizen/4.0/unified/20170828.222329 accepted/tizen/unified/20170821.051114 submit/tizen/20170816.060215 submit/tizen_4.0/20170828.100005
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:31:46 +0000 (16:31 +0900)
commit2f4b9eee81b01a60c537db5801b1e2f9f787a7ff
treea5e86eb7ec38ceb1d69201f925d9bd2aca873db7
parentdbfa5cb1406f4102473c845c7258cf38c2cb03f6
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