Blackberry Keyboard with Action Keys on BB 10 using Android Runtime

I have an Android app with certain keyboard layouts and some specific actions for the enter key on some text images. For example, text images are defined using

android:imeOptions="actionGo" android:inputType="text" 

and I have an EditText with onEditorActionListener defined as

 txtView.setOnEditorActionListener(this); public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_GO) { // do something InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(v.getWindowToken(), 0); return true; } return false; } 

This works fine in the Android version, but when it is ported to the BB 10 device, the enter key does not appear with the specified action (in this case, β€œGo”), and when you press the enter button, nothing happens even if the artist is selected actions.

Is there a way to resolve this or make it work? Or am I missing something?

I work on Z10 with 10.0.9.422.

+4
source share

All Articles