fix(search): Ignore *lock keys for keyboard shortcut matching (#63272)

This commit is contained in:
Felix Kling 2024-06-14 20:34:00 +02:00 committed by GitHub
parent 7228b4958d
commit bfe3e18927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,12 +84,15 @@ export const MODIFIER_KEYS = [
'FnLock',
'Hyper',
'Meta',
'NumLock',
'ScrollLock',
'Shift',
'Super',
'Symbol',
'SymbolLock',
// We are explicitly excluding these keys because they usually should not impact
// they keys used for keyboard shortcuts. We've gotten reports that single letter
// keyboard shortcuts are not working as expected when e.g. num lock is on.
// 'SymbolLock',
// 'NumLock',
// 'ScrollLock',
] as const
export type ModifierKey = typeof MODIFIER_KEYS[number]