mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
fix(search): Ignore *lock keys for keyboard shortcut matching (#63272)
This commit is contained in:
parent
7228b4958d
commit
bfe3e18927
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user