elc_naviframe: set focus to new view immediately only for item push 41/166441/2
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, 12 Jan 2018 05:02:42 +0000 (05:02 +0000)
commitd6bc78f11caadc627af9ee735ad4c4d8cd5d219f
tree5dbd3584f7e397c9e673daabab480e28615d3a93
parent7991a2aff930d34691edd80cbc7523dc4d6c0381
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/elementary/elc_naviframe.c