Skip to content

Pressing the center button on Android TV Remote works only on long press #83

Open
@manjunath-nuveb

Description

I am testing on TV emulator.

The issue happens only when the keyboard is opened and closed (using input).

after some debugging

@Override
  public boolean dispatchKeyEvent(KeyEvent event) {
    int keyCode = event.getKeyCode();
    Log.d("qqq", String.valueOf(keyCode));
    if (event.getKeyCode() == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_DOWN) {
      KeyEventModule.getInstance().onKeyDownEvent(event.getKeyCode(), event);
      return false;
    }
    return super.dispatchKeyEvent(event);
  }

code is reaching return super.dispatchKeyEvent(event); but not registered on

KeyEvent.onKeyDownListener(this.handleKeyDown)

Only on long press multiple enters are registered.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions