Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to type 2 characters on 1 hit with Android custom keyboard

So i'm doing my own Android Keyboard, and I'm doing it with the SoftKeyboard sample.

I'd like to write "ks" with my own key "ks" So unicode for "k" is 107 and unicode for "s" is 115

<Key android:codes="107" android:keyLabel="ks"/>

I can't find a way to put android:codes="107"+"115" , a comma is not the solution because if the first or the second letter.

I didn't find either a letter from unicode (http://en.wikipedia.org/wiki/List_of_Unicode_characters) which is "ks".

Thank you for spending time reading me, I hope there is a solution.

like image 695
Laurent Russier Avatar asked Dec 06 '25 03:12

Laurent Russier


1 Answers

got it ! android:keyOutputText="ks" I Hope it will help someone:) see http://developer.android.com/reference/android/inputmethodservice/Keyboard.Key.html#attr_android:keyOutputText

like image 121
Laurent Russier Avatar answered Dec 09 '25 16:12

Laurent Russier