Kha icon indicating copy to clipboard operation
Kha copied to clipboard

KeyPress for softKeyboard

Open RblSb opened this issue 8 years ago • 1 comments

It does not seem to work for android/android-native (OS 4.4.3). Example: https://gist.github.com/RblSb/84f94798a5bef36d7aa32a0839e40559

RblSb avatar Nov 13 '17 00:11 RblSb

Solved that in java for initial test. Sadly backspace doesn't work without visible TextField for Android 4.1+ and doesn't ever hit keyDown event, you only get E/LatinIME( 1060): Backspace when we don't know the selection position in logcat. Fantastic! So, soft keyboard api should be redesigned to show some default textfield with callbacks/etc. Maybe related: https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidInput.java#L225 Useless patch for reference: 0001-Soft-keyboard-android-java.patch.zip. And there is libGDX onKey event with getUnicodeChar, maybe i miss some hack about backspace, not sure.

RblSb avatar Aug 03 '19 04:08 RblSb