static void aOnEnter(final TextView tv, fO r) {
  androidUI(r {
    tv.setOnEditorActionListener(new TextView.OnEditorActionListener() {
      public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
        if (/*event != null && event.getKeyCode() == KeyEvent.KEYCODE_ENTER ||*/ actionId == EditorInfo.IME_ACTION_DONE) {
          aHideKeyboard();
          pcallF(r);
        }
        true;
      }
    });
  });
}