Skip to content
Commit fb89d568 authored by arthurhung's avatar arthurhung
Browse files

Add keycombination and double tap key commands

This will provide a convenient way to test combination key and single
key gesture without connecting a physical keyboard.

New commands:
'keycombination' : press multiple keys at same time.
'keyevent --doubletap' : double click with the same key.

Also fix the command 'keyevent --longpress' to let it waiting until long
press timeout instead passing the FLAG_LONG_PRESS flag, it's due to some
behaviors may check the event time.

Test: adb shell input keycombination keycode1 keycode2
Test: adb shell input keyevent --doubletap keycode
Test: adb shell input keyevent --longpress keycode
Bug: 162194917
Bug: 162194389

Change-Id: Ibe4d941ebe53cc5738db3ba9b59dffeeb31a7308
parent f6ed5fc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment