mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
✨ Add a keybind to open settings, CTRL + L
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
TextInput,
|
||||
Drawer,
|
||||
} from '@mantine/core';
|
||||
import { useColorScheme } from '@mantine/hooks';
|
||||
import { useColorScheme, useHotkeys } from '@mantine/hooks';
|
||||
import { useState } from 'react';
|
||||
import { Settings as SettingsIcon } from 'tabler-icons-react';
|
||||
import { useConfig } from '../../tools/state';
|
||||
@@ -97,6 +97,8 @@ function SettingsMenu(props: any) {
|
||||
}
|
||||
|
||||
export function SettingsMenuButton(props: any) {
|
||||
useHotkeys([['ctrl+L', () => setOpened(!opened)]]);
|
||||
|
||||
const [opened, setOpened] = useState(false);
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user