Much more thorough tests! (#1053)

This commit is contained in:
Pete Hunt
2020-03-23 16:38:41 -07:00
committed by GitHub
parent d4ff5cb926
commit bd7856adf3
22 changed files with 11883 additions and 24 deletions

View File

@ -14,6 +14,8 @@ export const KEYS = {
SPACE: " ",
} as const;
export type Key = keyof typeof KEYS;
export function isArrowKey(keyCode: string) {
return (
keyCode === KEYS.ARROW_LEFT ||