feat: add shortcut for the countdown timer

This commit is contained in:
MAZE 2024-08-31 17:16:30 +03:30
parent 24c0d58eee
commit fdd23899f1
3 changed files with 11 additions and 1 deletions

View file

@ -8,6 +8,11 @@ interface CountdownProps {
export function Countdown({ open }: CountdownProps) {
return (
<Item icon={<MdOutlineTimer />} label="Countdown Timer" onClick={open} />
<Item
icon={<MdOutlineTimer />}
label="Countdown Timer"
shortcut="Shift + C"
onClick={open}
/>
);
}

View file

@ -77,6 +77,7 @@ export function Menu() {
useHotkeys('shift+n', () => open('notepad'));
useHotkeys('shift+p', () => open('pomodoro'));
useHotkeys('shift+t', () => open('todo'));
useHotkeys('shift+c', () => open('countdown'));
useHotkeys('shift+s', () => open('shareLink'), { enabled: !noSelected });
useHotkeys('shift+alt+t', () => open('sleepTimer'));

View file

@ -25,6 +25,10 @@ export function ShortcutsModal({ onClose, show }: ShortcutsModalProps) {
keys: ['Shift', 'Alt', 'T'],
label: 'Sleep Timer',
},
{
keys: ['Shift', 'C'],
label: 'Countdown Timer',
},
{
keys: ['Shift', 'N'],
label: 'Notepad',