mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 17:34:17 +00:00
feat: add shortcut for breathing exercise
This commit is contained in:
parent
fc4f52146e
commit
60cb453847
3 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { MdOutlineTimer } from 'react-icons/md/index';
|
import { IoMdFlower } from 'react-icons/io/index';
|
||||||
|
|
||||||
import { Item } from '../item';
|
import { Item } from '../item';
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@ interface BreathingExerciseProps {
|
||||||
export function BreathingExercise({ open }: BreathingExerciseProps) {
|
export function BreathingExercise({ open }: BreathingExerciseProps) {
|
||||||
return (
|
return (
|
||||||
<Item
|
<Item
|
||||||
icon={<MdOutlineTimer />}
|
icon={<IoMdFlower />}
|
||||||
label="Breathing Exercise"
|
label="Breathing Exercise"
|
||||||
shortcut="Shift + B"
|
shortcut="Shift + B"
|
||||||
onClick={open}
|
onClick={open}
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,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+c', () => open('countdownTimer'));
|
useHotkeys('shift+c', () => open('countdownTimer'));
|
||||||
|
useHotkeys('shift+b', () => open('breathingExercise'));
|
||||||
useHotkeys('shift+alt+p', () => open('presets'));
|
useHotkeys('shift+alt+p', () => open('presets'));
|
||||||
useHotkeys('shift+h', () => open('shortcuts'));
|
useHotkeys('shift+h', () => open('shortcuts'));
|
||||||
useHotkeys('shift+s', () => open('shareLink'), { enabled: !noSelected });
|
useHotkeys('shift+s', () => open('shareLink'), { enabled: !noSelected });
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,10 @@ export function ShortcutsModal({ onClose, show }: ShortcutsModalProps) {
|
||||||
keys: ['Shift', 'P'],
|
keys: ['Shift', 'P'],
|
||||||
label: 'Pomodoro Timer',
|
label: 'Pomodoro Timer',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
keys: ['Shift', 'B'],
|
||||||
|
label: 'Breathing Exercise',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
keys: ['Shift', 'C'],
|
keys: ['Shift', 'C'],
|
||||||
label: 'Countdown Timer',
|
label: 'Countdown Timer',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue