diff --git a/src/App.tsx b/src/App.tsx index 6b63cc4..84cb65d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -75,12 +75,6 @@ function AppContent() { fitView({ padding: 0.2, duration: 300 }); }, [fitView]); - const handleSelectAll = useCallback(() => { - // This will be implemented in GraphEditor - // For now, we'll just document it - console.log("Select All - to be implemented"); - }, []); - // Setup global keyboard shortcuts useGlobalShortcuts({ onUndo: undo, @@ -89,7 +83,6 @@ function AppContent() { onOpenDocumentManager: () => setShowDocumentManager(true), onOpenHelp: () => setShowKeyboardHelp(true), onFitView: handleFitView, - onSelectAll: handleSelectAll, onFocusSearch: () => leftPanelRef.current?.focusSearch(), }); @@ -133,7 +126,6 @@ function AppContent() { setShowKeyboardHelp(true)} onFitView={handleFitView} - onSelectAll={handleSelectAll} onExport={exportCallbackRef.current || undefined} /> diff --git a/src/components/Menu/MenuBar.tsx b/src/components/Menu/MenuBar.tsx index 2861367..565e693 100644 --- a/src/components/Menu/MenuBar.tsx +++ b/src/components/Menu/MenuBar.tsx @@ -24,11 +24,10 @@ import type { ExportOptions } from '../../utils/graphExport'; interface MenuBarProps { onOpenHelp?: () => void; onFitView?: () => void; - onSelectAll?: () => void; onExport?: (format: 'png' | 'svg', options?: ExportOptions) => Promise; } -const MenuBar: React.FC = ({ onOpenHelp, onFitView, onSelectAll, onExport }) => { +const MenuBar: React.FC = ({ onOpenHelp, onFitView, onExport }) => { const [activeMenu, setActiveMenu] = useState(null); const [showDocumentManager, setShowDocumentManager] = useState(false); const [showNodeConfig, setShowNodeConfig] = useState(false); @@ -415,18 +414,6 @@ const MenuBar: React.FC = ({ onOpenHelp, onFitView, onSelectAll, o {getShortcutLabel('fit-view')} )} - )} diff --git a/src/hooks/useGlobalShortcuts.ts b/src/hooks/useGlobalShortcuts.ts index 59c7702..16ba7e3 100644 --- a/src/hooks/useGlobalShortcuts.ts +++ b/src/hooks/useGlobalShortcuts.ts @@ -17,7 +17,6 @@ interface UseGlobalShortcutsOptions { onRedo?: () => void; onOpenHelp?: () => void; onFitView?: () => void; - onSelectAll?: () => void; onFocusSearch?: () => void; } @@ -143,15 +142,6 @@ export function useGlobalShortcuts(options: UseGlobalShortcutsOptions = {}) { }, // Selection - { - id: "select-all", - description: "Select All", - key: "a", - ctrl: true, - handler: () => options.onSelectAll?.(), - category: "Selection", - enabled: !!options.onSelectAll, - }, { id: "deselect-all", description: "Deselect All",