EddyVerbruggen / cordova-plugin-native-keyboard

:musical_keyboard: Add a Slack / WhatsApp - style chat keyboard to your Cordova app!
274 stars 66 forks source link

Multiple lines can not be entered on android #84

Open iwatashin opened 6 years ago

iwatashin commented 6 years ago

Multiple lines can not be entered at android. Is IME Options actionDone? It can not be like the demo video.

EddyVerbruggen commented 6 years ago

I’m not entirely sure I understand the issue. Can you share more details (esp about the second sentence)? And specs of the devices you see and don’t see this on.

iwatashin commented 6 years ago

Can you share more details (esp about the second sentence)

keyboard-input/style android:imeOptions

And specs of the devices you see and don’t see this on.

I saw it on following devices.

zenfone5z emulater Nexus5x

nk

iwatashin commented 6 years ago

Is this bug? or Is my operation wrong?

EddyVerbruggen commented 6 years ago

So the problem is that when you press 'shift' you get an 'enter' key that doesn't behave as an 'enter' key? Never tried that really. What would you suggest? The current implementation is:

editText.setImeOptions(EditorInfo.IME_ACTION_DONE)

Does it matter whether or not you pass in the suppressSuggestions and maxChars properties?

iwatashin commented 6 years ago

So IME options is actionDone, closing the soft input method.

・actionDone The action key performs a "done" operation, closing the soft input method. Corresponds to EditorInfo.IME_ACTION_DONE.

It may be better to set the IME option to actionNone.

・actionNone This editor has no action associated with it. Corresponds toEditorInfo.IME_ACTION_NONE.