Skip to content

Commit

Permalink
fix(android): added recent apps button (#5331)
Browse files Browse the repository at this point in the history
  • Loading branch information
NareshMurthy committed Feb 17, 2021
1 parent 30e68f6 commit cc749fe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/dispatchers/androidDispatcher.ts
Expand Up @@ -281,11 +281,17 @@ const keyMap = new Map<string, number>([
['Slash', 76],
['/', 76],
['At', 77],
['@', 77],
['Num', 78],
['HeadsetHook', 79],
['Focus', 80],
['Plus', 81],
['Menu', 82],
['Notification', 83],
['Search', 84],
['AppSwitch', 187],
['Assist', 219],
['Cut', 277],
['Copy', 278],
['Paste', 279],
]);
10 changes: 8 additions & 2 deletions types/types.d.ts
Expand Up @@ -7290,14 +7290,20 @@ export type AndroidKey =
'Semicolon' | ';' |
'Apostrophe' | '`' |
'Slash' | '/' |
'At' |
'At' | '@' |
'Num' |
'HeadsetHook' |
'Focus' |
'Plus' | '+' |
'Menu' |
'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
export {};
Expand Down
10 changes: 8 additions & 2 deletions utils/generate_types/overrides.d.ts
Expand Up @@ -303,14 +303,20 @@ export type AndroidKey =
'Semicolon' | ';' |
'Apostrophe' | '`' |
'Slash' | '/' |
'At' |
'At' | '@' |
'Num' |
'HeadsetHook' |
'Focus' |
'Plus' | '+' |
'Menu' |
'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
export {};

0 comments on commit cc749fe

Please sign in to comment.