Skip to content

Commit

Permalink
fix(android): added buttons
Browse files Browse the repository at this point in the history
Added new android keys for playwright-android - AppSwitch, Assist, Cut, Copy, Paste
Modified a android key from 'At' to '@'
Fixes #5216
  • Loading branch information
NareshMurthy committed Feb 6, 2021
1 parent 13336b5 commit 8c0cd38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/dispatchers/androidDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,17 @@ const keyMap = new Map<string, number>([
['`', 75],
['Slash', 76],
['/', 76],
['At', 77],
['@', 77],
['Num', 78],
['HeadsetHook', 79],
['Focus', 80],
['Plus', 81],
['Menu', 82],
['Notification', 83],
['Search', 84],
['RecentApps', 187],
['AppSwitch', 187],
['Assist', 219],
['Cut', 277],
['Copy', 278],
['Paste', 279],
]);
8 changes: 6 additions & 2 deletions types/android.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,16 @@ export type AndroidKey =
'Semicolon' | ';' |
'Apostrophe' | '`' |
'Slash' | '/' |
'At' |
'@' |
'Num' |
'HeadsetHook' |
'Focus' |
'Plus' | '+' |
'Menu' |
'Notification' |
'Search' |
'RecentApps';
'AppSwitch' |
'Assist' |
'Cut' |
'Copy' |
'Paste';

0 comments on commit 8c0cd38

Please sign in to comment.