Browse Source
fix: arrow navigation should not trigger when modifier is held
master
Failed to extract signature
1 changed files with
2 additions and
0 deletions
-
src/components/Container.tsx
|
|
@ -140,6 +140,8 @@ const Container: React.FC<{ |
|
|
|
}; |
|
|
|
|
|
|
|
function kbnav(e: KeyboardEvent) { |
|
|
|
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return; |
|
|
|
|
|
|
|
switch (e.key) { |
|
|
|
case "ArrowLeft": |
|
|
|
return handlePrev(e); |
|
|
|