onKeyListener not working on virtual keyboard

前端 未结 6 949
南方客
南方客 2020-12-01 16:00

I don\'t understand why this piece of code is not working. Only backspace and return key are detected. Listener doesn\'t fire for any other key. My device is Nexus One.

6条回答
  •  自闭症患者
    2020-12-01 16:23

    You have done one mistake here.
    it should return true,If you handled the event. If you want to allow the event to be handled by the next receiver, return false
    You are always returning true

提交回复
热议问题