0

I want to override a method like the "onBackPressed()"-method but I don't know how the keycode is called of the button I'm looking for. Does anyone know how this button is called? I know this question was already asked in a similiar way and if you want to see a picture of what I mean klcik here:

How to track the down arrow button in virtual keyboard?

And no, the button can't be addressed with onBackPressed()!!!!

Thanks! :)

HaxnHarald
  • 11
  • 1
  • 1
    I do not think that there is any way to track or prevent the input method editor from being closed via the BACK button. Despite the icon change, that is still the BACK button. – CommonsWare Aug 12 '17 at 20:57
  • But I does not work. If I choose another button like 'A' or 'B' it works. So it can't be the BACK-button... – HaxnHarald Aug 12 '17 at 21:23
  • I do not know what you mean by "another button like 'A' or 'B'". If you mean that you are implementing the input method editor, I would not expect you to find out when that button gets clicked, though I would expect that there is some way for you to know that the input method editor has been closed by the user. – CommonsWare Aug 12 '17 at 21:29
  • I mean that I just need the name of this buton because I can set an onClickListener on it and perfrom the action I want. With every other button on the keyboard it works – HaxnHarald Aug 12 '17 at 22:21
  • It is not a button on which you can set a listener. – CommonsWare Aug 12 '17 at 22:46
  • And how can I add special behaviour for this button if I can't set an Listener? – HaxnHarald Aug 25 '17 at 10:07
  • Quoting my original comment: "I do not think that there is any way to track or prevent the input method editor from being closed via the BACK button. Despite the icon change, that is still the BACK button." – CommonsWare Aug 25 '17 at 11:08

0 Answers0