I created a custom input method, just the keyboard not a complete IME with an editText, but for some reason my "Enter" button isnt performing like that of the built in keyboard. On certain apps, such as the Facebook app for eg., there is a "Log In" button or some similar button following the "password" field. When I use the built in keyboard and I put in my password and press the "Enter" button it begins the log in process, but my keyboard doesnt do that. I tried sending the key event in different ways using:
ic.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER));
and
sendDownUpKeyEvents(KeyEvent.KEYCODE_ENTER);
but neither seems to have the same effect. Just to be clear; both pieces of code satisfy other "Enter" functions such as committing text to a textfied or starting a new line. Could someone please tell me what I am missing here?