[mobile] small improvement to debugging: should work with RemoteKeyboard send action

This commit is contained in:
fkloft 2014-02-13 21:43:25 +01:00
parent 9516994fa4
commit 1c637cce10

View File

@ -104,7 +104,9 @@ public class IITC_Mobile extends Activity
mEditCommand.setOnEditorActionListener(new TextView.OnEditorActionListener() { mEditCommand.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override @Override
public boolean onEditorAction(final TextView v, final int actionId, final KeyEvent event) { public boolean onEditorAction(final TextView v, final int actionId, final KeyEvent event) {
if (EditorInfo.IME_ACTION_GO == actionId) { if (EditorInfo.IME_ACTION_GO == actionId ||
EditorInfo.IME_ACTION_SEND == actionId ||
EditorInfo.IME_ACTION_DONE == actionId) {
onBtnRunCodeClick(v); onBtnRunCodeClick(v);
final InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); final InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);