We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68d11ad commit 7c38271Copy full SHA for 7c38271
packages/commands/src/index.ts
@@ -1202,11 +1202,11 @@ export namespace CommandRegistry {
1202
}
1203
1204
/**
1205
- * Check if `'keydown'` event is caused by pressing a key that should be ignored.
+ * Check if `'keydown'` event is caused by pressing a modifier key that should be ignored.
1206
*
1207
* @param event - The event object for a `'keydown'` event.
1208
1209
- * @returns `true` if ignored key was pressed, `false` otherwise.
+ * @returns `true` if modifier key was pressed, `false` otherwise.
1210
*/
1211
export function isModifierKeyPressed(event: KeyboardEvent): boolean {
1212
let layout = getKeyboardLayout();
0 commit comments