feat: add shortcut for breathing exercise

This commit is contained in:
MAZE 2024-07-01 18:54:09 +03:30
parent fc4f52146e
commit 60cb453847
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import { MdOutlineTimer } from 'react-icons/md/index';
import { IoMdFlower } from 'react-icons/io/index';
import { Item } from '../item';
@ -9,7 +9,7 @@ interface BreathingExerciseProps {
export function BreathingExercise({ open }: BreathingExerciseProps) {
return (
<Item
icon={<MdOutlineTimer />}
icon={<IoMdFlower />}
label="Breathing Exercise"
shortcut="Shift + B"
onClick={open}

View file

@ -76,6 +76,7 @@ export function Menu() {
useHotkeys('shift+n', () => open('notepad'));
useHotkeys('shift+p', () => open('pomodoro'));
useHotkeys('shift+c', () => open('countdownTimer'));
useHotkeys('shift+b', () => open('breathingExercise'));
useHotkeys('shift+alt+p', () => open('presets'));
useHotkeys('shift+h', () => open('shortcuts'));
useHotkeys('shift+s', () => open('shareLink'), { enabled: !noSelected });

View file

@ -29,6 +29,10 @@ export function ShortcutsModal({ onClose, show }: ShortcutsModalProps) {
keys: ['Shift', 'P'],
label: 'Pomodoro Timer',
},
{
keys: ['Shift', 'B'],
label: 'Breathing Exercise',
},
{
keys: ['Shift', 'C'],
label: 'Countdown Timer',