refactor(pastel): remove keyboard shortcuts and useKeyboard hook

This commit is contained in:
2026-02-23 08:41:32 +01:00
parent 2160b9aaa0
commit fd2ada4438
3 changed files with 0 additions and 138 deletions

View File

@@ -7,7 +7,6 @@ import { ColorDisplay } from '@/components/pastel/color/ColorDisplay';
import { ColorInfo } from '@/components/pastel/color/ColorInfo';
import { ManipulationPanel } from '@/components/pastel/tools/ManipulationPanel';
import { useColorInfo } from '@/lib/pastel/api/queries';
import { useKeyboard } from '@/lib/pastel/hooks/useKeyboard';
import { useColorHistory } from '@/lib/pastel/stores/historyStore';
import { Loader2, Share2, History, X } from 'lucide-react';
import { Button } from '@/components/ui/Button';
@@ -58,28 +57,6 @@ function PlaygroundContent() {
setColor(randomHex);
};
// Keyboard shortcuts
useKeyboard([
{
key: 'c',
meta: true,
handler: handleCopyColor,
description: 'Copy color',
},
{
key: 's',
meta: true,
handler: handleShare,
description: 'Share color',
},
{
key: 'r',
meta: true,
handler: handleRandomColor,
description: 'Random color',
},
]);
return (
<div className="min-h-screen py-12">
<div className="max-w-7xl mx-auto px-8 space-y-8">
@@ -88,14 +65,6 @@ function PlaygroundContent() {
<p className="text-muted-foreground">
Interactive color manipulation and analysis tool
</p>
<div className="mt-3 flex flex-wrap gap-2 text-xs text-muted-foreground">
<kbd className="px-2 py-1 bg-muted rounded border">C</kbd>
<span>Copy</span>
<kbd className="px-2 py-1 bg-muted rounded border ml-3">S</kbd>
<span>Share</span>
<kbd className="px-2 py-1 bg-muted rounded border ml-3">R</kbd>
<span>Random</span>
</div>
</div>
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8">