Skip to content

Commit cc749fe

Browse files
authored
fix(android): added recent apps button (#5331)
1 parent 30e68f6 commit cc749fe

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

src/dispatchers/androidDispatcher.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,17 @@ const keyMap = new Map<string, number>([
281281
['Slash', 76],
282282
['/', 76],
283283
['At', 77],
284+
['@', 77],
284285
['Num', 78],
285286
['HeadsetHook', 79],
286287
['Focus', 80],
287288
['Plus', 81],
288289
['Menu', 82],
289290
['Notification', 83],
290291
['Search', 84],
292+
['AppSwitch', 187],
293+
['Assist', 219],
294+
['Cut', 277],
295+
['Copy', 278],
296+
['Paste', 279],
291297
]);

types/types.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7290,14 +7290,20 @@ export type AndroidKey =
72907290
'Semicolon' | ';' |
72917291
'Apostrophe' | '`' |
72927292
'Slash' | '/' |
7293-
'At' |
7293+
'At' | '@' |
72947294
'Num' |
72957295
'HeadsetHook' |
72967296
'Focus' |
72977297
'Plus' | '+' |
72987298
'Menu' |
72997299
'Notification' |
7300-
'Search';
7300+
'Search' |
7301+
'RecentApps' |
7302+
'AppSwitch' |
7303+
'Assist' |
7304+
'Cut' |
7305+
'Copy' |
7306+
'Paste';
73017307

73027308
// This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459
73037309
export {};

utils/generate_types/overrides.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,20 @@ export type AndroidKey =
303303
'Semicolon' | ';' |
304304
'Apostrophe' | '`' |
305305
'Slash' | '/' |
306-
'At' |
306+
'At' | '@' |
307307
'Num' |
308308
'HeadsetHook' |
309309
'Focus' |
310310
'Plus' | '+' |
311311
'Menu' |
312312
'Notification' |
313-
'Search';
313+
'Search' |
314+
'RecentApps' |
315+
'AppSwitch' |
316+
'Assist' |
317+
'Cut' |
318+
'Copy' |
319+
'Paste';
314320

315321
// This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459
316322
export {};

0 commit comments

Comments
 (0)