Where does default input keyboard sit in the flow for dispatching key events on android?

佐手、 提交于 2019-12-10 23:06:07

问题


In one of my Custom view, inheriting from a View group, I was getting Key_Down and Key_Up events for a Tab key in dispatchKeyEvent method.

A latest update on Google Keyboard upgraded it from 4.0.* to 5.0.*. Post this update, I am not getting Key_Down in dispatchKeyEvent in the ViewGroup. I have checked that I am getting both Key_Down and Key_Up events in dispatchKeyEventPreIme in ViewGroup. Also, I am not handling Key_Down in OnKeyPreIme in my Custom View.

I am not able to figure out, who is eating away Key_Down event in this case? I continue to get Key_Up event like before. For this, I am trying to understand where input keyboard sit in the flow for dispatching key events. Couldn't find much info regarding this on web.

Would appreciate any help/pointers. Thanks!

来源:https://stackoverflow.com/questions/37949252/where-does-default-input-keyboard-sit-in-the-flow-for-dispatching-key-events-on

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!