I am developing a custom keyboard for android. I am using KeyEvent.KEYCODE_DPAD_LEFT and KeyEvent.KEYCODE_DPAD_RIGHT for left and right arrow keys. Now I want to have forward delete key like usual keyboards and unfortunately android supports it from api level 11 using constant KeyEvent.KEYCODE_FORWARD_DEL. How can I implement forward key delete for lower Apis?
The constant value of KeyEvent.KEYCODE_FORWARD_DEL is 112. when I use its value instead, it print out character p.
How can I solve this problem?
I found the solution: