fix(android): added recent apps button (#5331)

This commit is contained in:
Naresh 2021-02-17 09:07:46 +05:30 committed by GitHub
parent 30e68f6d1f
commit cc749fe679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

@ -281,6 +281,7 @@ const keyMap = new Map<string, number>([
['Slash', 76], ['Slash', 76],
['/', 76], ['/', 76],
['At', 77], ['At', 77],
['@', 77],
['Num', 78], ['Num', 78],
['HeadsetHook', 79], ['HeadsetHook', 79],
['Focus', 80], ['Focus', 80],
@ -288,4 +289,9 @@ const keyMap = new Map<string, number>([
['Menu', 82], ['Menu', 82],
['Notification', 83], ['Notification', 83],
['Search', 84], ['Search', 84],
['AppSwitch', 187],
['Assist', 219],
['Cut', 277],
['Copy', 278],
['Paste', 279],
]); ]);

10
types/types.d.ts vendored
View file

@ -7290,14 +7290,20 @@ export type AndroidKey =
'Semicolon' | ';' | 'Semicolon' | ';' |
'Apostrophe' | '`' | 'Apostrophe' | '`' |
'Slash' | '/' | 'Slash' | '/' |
'At' | 'At' | '@' |
'Num' | 'Num' |
'HeadsetHook' | 'HeadsetHook' |
'Focus' | 'Focus' |
'Plus' | '+' | 'Plus' | '+' |
'Menu' | 'Menu' |
'Notification' | 'Notification' |
'Search'; 'Search' |
'RecentApps' |
'AppSwitch' |
'Assist' |
'Cut' |
'Copy' |
'Paste';
// This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459 // This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459
export {}; export {};

View file

@ -303,14 +303,20 @@ export type AndroidKey =
'Semicolon' | ';' | 'Semicolon' | ';' |
'Apostrophe' | '`' | 'Apostrophe' | '`' |
'Slash' | '/' | 'Slash' | '/' |
'At' | 'At' | '@' |
'Num' | 'Num' |
'HeadsetHook' | 'HeadsetHook' |
'Focus' | 'Focus' |
'Plus' | '+' | 'Plus' | '+' |
'Menu' | 'Menu' |
'Notification' | 'Notification' |
'Search'; 'Search' |
'RecentApps' |
'AppSwitch' |
'Assist' |
'Cut' |
'Copy' |
'Paste';
// This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459 // This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459
export {}; export {};