sebbo2002 / node-pyatv

A lightweight node.js wrapper around pyatv…
MIT License
26 stars 2 forks source link

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

Open zhiningq opened 1 week ago

zhiningq commented 1 week ago

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

Is it possible to allow keyPress to take an array instead of just a single key? https://github.com/sebbo2002/node-pyatv/blob/7e6eefa8df87d73c4129bdc6d24148fe8ea9976d/src/lib/device.ts#L350

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

sebbo2002 commented 1 week ago

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.