Skip to content

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

Description

@manjunath-nuveb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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