Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manjunath-nuveb opened this issue Feb 8, 2024 · 0 comments

Comments

@manjunath-nuveb
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant