mirror of
https://github.com/remvze/moodist.git
synced 2025-12-19 01:44:15 +00:00
feat: add shortcut for the countdown timer
This commit is contained in:
parent
24c0d58eee
commit
fdd23899f1
3 changed files with 11 additions and 1 deletions
|
|
@ -8,6 +8,11 @@ interface CountdownProps {
|
||||||
|
|
||||||
export function Countdown({ open }: CountdownProps) {
|
export function Countdown({ open }: CountdownProps) {
|
||||||
return (
|
return (
|
||||||
<Item icon={<MdOutlineTimer />} label="Countdown Timer" onClick={open} />
|
<Item
|
||||||
|
icon={<MdOutlineTimer />}
|
||||||
|
label="Countdown Timer"
|
||||||
|
shortcut="Shift + C"
|
||||||
|
onClick={open}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ export function Menu() {
|
||||||
useHotkeys('shift+n', () => open('notepad'));
|
useHotkeys('shift+n', () => open('notepad'));
|
||||||
useHotkeys('shift+p', () => open('pomodoro'));
|
useHotkeys('shift+p', () => open('pomodoro'));
|
||||||
useHotkeys('shift+t', () => open('todo'));
|
useHotkeys('shift+t', () => open('todo'));
|
||||||
|
useHotkeys('shift+c', () => open('countdown'));
|
||||||
useHotkeys('shift+s', () => open('shareLink'), { enabled: !noSelected });
|
useHotkeys('shift+s', () => open('shareLink'), { enabled: !noSelected });
|
||||||
useHotkeys('shift+alt+t', () => open('sleepTimer'));
|
useHotkeys('shift+alt+t', () => open('sleepTimer'));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ export function ShortcutsModal({ onClose, show }: ShortcutsModalProps) {
|
||||||
keys: ['Shift', 'Alt', 'T'],
|
keys: ['Shift', 'Alt', 'T'],
|
||||||
label: 'Sleep Timer',
|
label: 'Sleep Timer',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
keys: ['Shift', 'C'],
|
||||||
|
label: 'Countdown Timer',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
keys: ['Shift', 'N'],
|
keys: ['Shift', 'N'],
|
||||||
label: 'Notepad',
|
label: 'Notepad',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue