Merge pull request #4771 from h3poteto/iss-4653/fix-mac-key

refs #4653 Fix mac hot keys
This commit is contained in:
AkiraFukushima 2024-01-13 15:55:05 +09:00 committed by GitHub
commit 1893361327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export default function Layout({ children }: LayoutProps) {
const streamings = useRef<Array<WebSocketInterface>>([]) const streamings = useRef<Array<WebSocketInterface>>([])
for (let i = 1; i < 9; i++) { for (let i = 1; i < 9; i++) {
useHotkeys(`ctrl+${i}`, () => { useHotkeys(`mod+${i}`, () => {
const acct = accounts[i - 1] const acct = accounts[i - 1]
if (acct && acct.id) { if (acct && acct.id) {
router.push(`/accounts/${acct.id}`) router.push(`/accounts/${acct.id}`)

View File

@ -20,7 +20,7 @@ export default function Layout({ children }: LayoutProps) {
const [lists, setLists] = useState<Array<Entity.List>>([]) const [lists, setLists] = useState<Array<Entity.List>>([])
const [openJump, setOpenJump] = useState(false) const [openJump, setOpenJump] = useState(false)
useHotkeys('ctrl+k', () => setOpenJump(current => !current)) useHotkeys('mod+k', () => setOpenJump(current => !current))
useEffect(() => { useEffect(() => {
if (router.query.id) { if (router.query.id) {