Skip to content

Commit 7c38271

Browse files
Dzmitry KishylauDzmitry Kishylau
Dzmitry Kishylau
authored and
Dzmitry Kishylau
committed
Update a comment to specifically refer to modifier keys
1 parent 68d11ad commit 7c38271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/commands/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,11 +1202,11 @@ export namespace CommandRegistry {
12021202
}
12031203

12041204
/**
1205-
* Check if `'keydown'` event is caused by pressing a key that should be ignored.
1205+
* Check if `'keydown'` event is caused by pressing a modifier key that should be ignored.
12061206
*
12071207
* @param event - The event object for a `'keydown'` event.
12081208
*
1209-
* @returns `true` if ignored key was pressed, `false` otherwise.
1209+
* @returns `true` if modifier key was pressed, `false` otherwise.
12101210
*/
12111211
export function isModifierKeyPressed(event: KeyboardEvent): boolean {
12121212
let layout = getKeyboardLayout();

0 commit comments

Comments
 (0)