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

Is it possible to support double tap key press? #325

Open
zhiningq opened this issue Jun 27, 2024 · 1 comment
Open

Is it possible to support double tap key press? #325

zhiningq opened this issue Jun 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@zhiningq
Copy link

zhiningq commented Jun 27, 2024

My goal is to be able to force quit an app using double tap home key and swipe up:

It can only be achieved using workaround

  • atvremote -s home home // calling this can show a list of background apps
  • atvremote -s up up // calling this can exit the current app

Is it possible to allow keyPress to take an array instead of just a single key?

async pressKey(key: NodePyATVKeys): Promise<void> {

or if we could support double tap on keyPress with InputAction https://github.com/postlund/pyatv/blob/master/pyatv/interface.py#L372

@zhiningq zhiningq changed the title Is it possible to support double tap home key Is it possible to support double tap key press? Jun 27, 2024
@sebbo2002 sebbo2002 added the enhancement New feature or request label Jun 28, 2024
@sebbo2002
Copy link
Owner

Sounds absolutely feasible, implementing InputAction would probably make more sense. Unfortunately I have a lot to do at the moment, but if it's not urgent I would take care of it in the next few weeks. Otherwise, I'm also happy to accept pull requests if it's urgent.

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

No branches or pull requests

2 participants