0

Is there any way to to detect that DEL(backspace) is pressed in Android Soft Keyboard? KeyListener() is not working for me. Please give me another solution.

Asad Mahmood
  • 188
  • 1
  • 10
  • Possible duplicate of [Android: Numeric key register backspace pressed](http://stackoverflow.com/questions/18101407/android-numeric-key-register-backspace-pressed) – Eeshwar Nov 18 '16 at 13:51
  • Could you let us know what exactly doesn't work and what you've tried? – Wirling Nov 18 '16 at 13:54
  • @Wirling yes i am trying to auto correct the word as user is typing and if user doesn't like my suggestion and presses backspace to remove the word then i want to display list of suggestion. so i need to detect backspace to display suggestions. – Asad Mahmood Nov 18 '16 at 14:36
  • @AsadMahmood this post would probably help you: http://stackoverflow.com/questions/4886858/android-edittext-deletebackspace-key-event – Wirling Nov 18 '16 at 15:10
  • @Wirling this is not working and i have mentioned in my question that KeyListener is not working for me. – Asad Mahmood Nov 18 '16 at 15:23
  • @Wirling onKeyListener doesn't work for soft keyboards – Asad Mahmood Nov 18 '16 at 15:24
  • @AsadMahmood can you post some code so we can figure out why it isn't working for you? – Wirling Nov 18 '16 at 15:33

0 Answers0