Skip to Content
PluginsKeyboard Shortcuts

Keyboard Shortcuts Plugin

The Keyboard Shortcuts plugin enables global keyboard controls for navigation, event management, and clipboard operations.

Installation

Install the plugin package:

npm install @dayflow/plugin-keyboard-shortcuts

Usage

import { useCalendarApp } from '@dayflow/core'; import { createKeyboardShortcutsPlugin } from '@dayflow/plugin-keyboard-shortcuts'; function MyCalendar() { const calendar = useCalendarApp({ // ... plugins: [ createKeyboardShortcutsPlugin({ // Optional configuration }), ], }); return <DayFlowCalendar calendar={calendar} />; }

Default Shortcuts

ActionKey (Mac)Key (Windows/Linux)
Go to TodayCmd + TCtrl + T
SearchCmd + FCtrl + F
New EventCmd + NCtrl + N
NavigationArrowLeft / ArrowRightArrowLeft / ArrowRight
Tab Through EventsTab / Shift + TabTab / Shift + Tab
UndoCmd + ZCtrl + Z
Copy EventCmd + CCtrl + C
Cut EventCmd + XCtrl + X
Paste EventCmd + VCtrl + V
Delete EventBackspace / DeleteBackspace / Delete
Close Dialogs/PanelsEscEsc

Configuration

You can customize the key mappings:

createKeyboardShortcutsPlugin({ keyMap: { today: 't', search: 'f', prev: 'ArrowLeft', next: 'ArrowRight', delete: 'Delete', newEvent: 'n', }, });

Plugin API

You can programmatically trigger UI dismissal:

calendar.app.dismissUI();
Last updated on