Merge pull request #4771 from h3poteto/iss-4653/fix-mac-key
refs #4653 Fix mac hot keys
This commit is contained in:
commit
1893361327
|
@ -28,7 +28,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||
const streamings = useRef<Array<WebSocketInterface>>([])
|
||||
|
||||
for (let i = 1; i < 9; i++) {
|
||||
useHotkeys(`ctrl+${i}`, () => {
|
||||
useHotkeys(`mod+${i}`, () => {
|
||||
const acct = accounts[i - 1]
|
||||
if (acct && acct.id) {
|
||||
router.push(`/accounts/${acct.id}`)
|
||||
|
|
|
@ -20,7 +20,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||
const [lists, setLists] = useState<Array<Entity.List>>([])
|
||||
const [openJump, setOpenJump] = useState(false)
|
||||
|
||||
useHotkeys('ctrl+k', () => setOpenJump(current => !current))
|
||||
useHotkeys('mod+k', () => setOpenJump(current => !current))
|
||||
|
||||
useEffect(() => {
|
||||
if (router.query.id) {
|
||||
|
|
Loading…
Reference in New Issue