Replace the usage of onKeyUp() with onKey() in ContentView |
|
Issue descriptionVersion: Chrome 51.2704 OS: Android L OS 5.1.1 Currently in ContentViewCore, we are using onKeyUp() to track the use of BACK_KEY. But it's better to use onKey(), because it gives chance to listeners to respond before the target view. So it can be a graceful exit, than that of onKeyUp()
,
Jun 23 2016
@changwan - Could you please share your thoughts on this ?
,
Jun 23 2016
What's the user facing bug that comes out of this? I don't understand. What kind of listeners and what kind of exit are you referring to?
,
Jun 23 2016
There is no user bug as of now. Recently I made a change in https://codereview.chromium.org/1947603002/ which takes care of giving BACK KEY to keyboard early and the android documentation also suggests onKey() is better approach. So thought of applying it here. |
|
►
Sign in to add a comment |
|
Comment 1 by ajit...@samsung.com
, Jun 22 2016Labels: OS-Android