mirror of
https://github.com/crabwise-ai/crabwalk.git
synced 2026-08-14 00:57:52 +00:00
fix: Removed the Ctrl+K shortcut. The "clear completed" button in the UI still works — no need for a global keyboard shortcut that conflicts with browser/OS defaults.
This commit is contained in:
@@ -103,19 +103,6 @@ function MonitorPage() {
|
||||
console.log(`[monitor] cleared ${count} completed execs`)
|
||||
}, [])
|
||||
|
||||
// Keyboard shortcut: Ctrl+K to clear completed
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === 'k') {
|
||||
e.preventDefault()
|
||||
if (completedCount > 0) {
|
||||
handleClearCompleted()
|
||||
}
|
||||
}
|
||||
}
|
||||
window.addEventListener('keydown', handleKeyDown)
|
||||
return () => window.removeEventListener('keydown', handleKeyDown)
|
||||
}, [completedCount, handleClearCompleted])
|
||||
|
||||
// Check connection status and persistence on mount
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user