import { HelpCircle, X } from 'lucide-react'; import React from 'react'; interface ShortcutsModalProps { isOpen: boolean; onClose: () => void; } const SHORTCUTS = [ { key: '空格键 (Space)', action: '播放 / 暂停' }, { key: '← / →', action: '快退 / 快进 10 个词' }, { key: 'Shift + ← / →', action: '跳转到 上一句 / 下一句' }, { key: '↑ / ↓', action: '微调阅读语速 ±25 WPM' }, { key: 'Shift + ↑ / ↓', action: '加速调节语速 ±50 WPM' }, { key: '[ / ] 或 PageUp/Down', action: '跳转到 上一章 / 下一章' }, { key: 'R', action: '从头重新开始阅读' }, { key: 'F', action: '切换全屏专注模式' }, { key: 'Esc', action: '关闭当前浮层 / 弹窗' }, ]; export const ShortcutsModal: React.FC = ({ isOpen, onClose, }) => { if (!isOpen) return null; return (
{/* Header */}

键盘极速快捷键

{/* Shortcuts list */}
{SHORTCUTS.map((s, idx) => (
{s.key} {s.action}
))}
); };