sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

EditText as ViewRenderable and Keyboard

Open bobekos opened this issue 6 years ago • 9 comments

Hi,

i have a problem with the keyboard. When I display an EditText and touch it, the keyboard is not shown. I can force the keyboard to display with the following code (see below), but the view does not respond to the input. Any ideas?

val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0)

bobekos avatar Sep 05 '18 08:09 bobekos

This is a bug, we will look into a fix to make EditText usable.

dsternfeld7 avatar Sep 06 '18 22:09 dsternfeld7

Great thx

bobekos avatar Sep 08 '18 05:09 bobekos

This will be fixed in an upcoming release.

dsternfeld7 avatar Sep 10 '18 19:09 dsternfeld7

Unfortunately, the fix we had for this caused other problems so we are continuing to investigate this issue.

dsternfeld7 avatar Sep 12 '18 23:09 dsternfeld7

Is the issue fixed now?

kinochi avatar Apr 24 '19 14:04 kinochi

Are you still working on this issue? I think interaction is very important.

BForever avatar Nov 05 '19 08:11 BForever

I was able to update edit text like this.

Get keyboard on EditText onclick

InputMethodManager imm = (InputMethodManager) getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
// imm.showSoftInput seems to be not working

Get keyboard press event and update edit text https://developer.android.com/training/keyboard-input/commands.html

@Override
    public boolean onKeyUp(int keyCode, KeyEvent event) {   
        editText.setText(editText.getText().append((char)event.getUnicodeChar()));
        return super.onKeyUp(keyCode, event);
    }

But with above method you will have to handle clear, backspace and other events

Sanjeev-Hegde avatar Nov 26 '19 09:11 Sanjeev-Hegde

I has the same problem in my app, is this issue fixed now?

KonsanAlide avatar Jan 13 '20 07:01 KonsanAlide

Also clicking an input field in a WebView does not cause the keyboard to appear :-(

darek607 avatar Jan 27 '20 09:01 darek607