From f56db621c8f2b559df74b61daf6f2a9780d5de83 Mon Sep 17 00:00:00 2001 From: liuyibo Date: Sat, 18 Feb 2023 23:22:41 +0800 Subject: [PATCH] docs: modify annotation --- packages/hooks/src/useKeyPress/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/hooks/src/useKeyPress/index.ts b/packages/hooks/src/useKeyPress/index.ts index 55389130e5..8ce567f454 100644 --- a/packages/hooks/src/useKeyPress/index.ts +++ b/packages/hooks/src/useKeyPress/index.ts @@ -80,10 +80,10 @@ const aliasKeyCodeMap: Record = { z: 90, leftwindowkey: 91, rightwindowkey: 92, - meta: isAppleDevice ? [91, 93, 224] : [91, 92], // ⌘ cmd or ⊞ win - leftmetakey: 91, // ⌘ left - rightmetakey: 93, // ⌘ right - selectkey: 93, // ≣ menu + meta: isAppleDevice ? [91, 93, 224] : [91, 92], // Command ⌘ or Window ⊞ + leftmetakey: 91, // Left ⌘ or Left ⊞ + rightmetakey: 93, // Right ⌘ or Right ⊞ + selectkey: 93, // ContextMenu ≣ numpad0: 96, numpad1: 97, numpad2: 98, @@ -94,11 +94,11 @@ const aliasKeyCodeMap: Record = { numpad7: 103, numpad8: 104, numpad9: 105, - multiply: 106, // numpad * - add: 107, // numpad + - subtract: 109, // numpad - - decimalpoint: 110, // numpad . - divide: 111, // numpad / + multiply: 106, // Numpad * + add: 107, // Numpad + + subtract: 109, // Numpad - + decimalpoint: 110, // Numpad . + divide: 111, // Numpad / f1: 112, f2: 113, f3: 114,