remove: ctrl+p suppress handler — Ctrl+K already covers search

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 11:33:01 -04:00
parent a3f776134f
commit 0370ed525a
@@ -265,21 +265,9 @@ type ClientNonUIFeaturesProps = {
children: ReactNode;
};
function SuppressPrintShortcut() {
useEffect(() => {
const handler = (e: KeyboardEvent) => {
if ((e.ctrlKey || e.metaKey) && e.code === 'KeyP') e.preventDefault();
};
window.addEventListener('keydown', handler);
return () => window.removeEventListener('keydown', handler);
}, []);
return null;
}
export function ClientNonUIFeatures({ children }: ClientNonUIFeaturesProps) {
return (
<>
<SuppressPrintShortcut />
<SystemEmojiFeature />
<PageZoomFeature />
<FaviconUpdater />