Skip to content

Commit

Permalink
feat: tab shorcut
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 15, 2024
1 parent 1a7aa33 commit 3a5cf1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/lib/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const shortcuts = {
},
switchBetweenViews: {
name: "Switch Between Views",
key: "Left, Right",
key: "Tab, Left, Right",
},
},
entries: {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/modules/feed-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export function FeedColumn() {

useHotkeys(
shortcuts.feeds.switchBetweenViews.key,
() => {
(e) => {
e.preventDefault()
if (isHotkeyPressed("Left")) {
setActive((i) => {
if (i === 0) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3a5cf1a

Please sign in to comment.