Send button not working of custom keyboard in android in case of instagram -


i have created custom keyboard working fine far , getting issue , when try send message in instagram app (or other app) , action enter didn't work.

my code :

private void sendkey(int keycode) {     switch (keycode) {         case '\n':             keydownup(keyevent.keycode_enter);             break;         default:             if (keycode >= '0' && keycode <= '9') {                 keydownup(keycode - '0' + keyevent.keycode_0);             } else {       this.minputconnection.committext(string.valueof((char) keycode), 1);                 removesuggestionfromtextview();             }             break;     } } 

thanks in advance.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -