feat: tab shorcut
This commit is contained in:
parent
1a7aa33d02
commit
3a5cf1a97f
|
|
@ -22,7 +22,7 @@ export const shortcuts = {
|
|||
},
|
||||
switchBetweenViews: {
|
||||
name: "Switch Between Views",
|
||||
key: "Left, Right",
|
||||
key: "Tab, Left, Right",
|
||||
},
|
||||
},
|
||||
entries: {
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ export function FeedColumn() {
|
|||
|
||||
useHotkeys(
|
||||
shortcuts.feeds.switchBetweenViews.key,
|
||||
() => {
|
||||
(e) => {
|
||||
e.preventDefault()
|
||||
if (isHotkeyPressed("Left")) {
|
||||
setActive((i) => {
|
||||
if (i === 0) {
|
||||
|
|
@ -188,7 +189,6 @@ export function FeedColumn() {
|
|||
active === index && item.className,
|
||||
"flex h-11 flex-col items-center gap-1 text-xl",
|
||||
"hover:!bg-theme-vibrancyBg",
|
||||
"focus-visible:!outline-none",
|
||||
)}
|
||||
onClick={(e) => {
|
||||
setActive(index)
|
||||
|
|
|
|||
Loading…
Reference in New Issue