diff --git a/app/app.js b/app/app.js index 90424fa..cb3c7c3 100644 --- a/app/app.js +++ b/app/app.js @@ -14,7 +14,6 @@ const outputText = document.getElementById('outputText'); const intensitySlider = document.getElementById('intensity'); const intensityValue = document.getElementById('intensityValue'); const zalgoModeSelect = document.getElementById('zalgoMode'); -const clearBtn = document.getElementById('clearBtn'); const copyNotification = document.getElementById('copyNotification'); // Easter egg state @@ -117,15 +116,6 @@ async function copyToClipboard() { } } -/** - * Clear all text fields - */ -function clearAll() { - inputText.value = ''; - outputText.value = ''; - inputText.focus(); -} - /** * Easter Egg Functions */ @@ -325,16 +315,8 @@ outputText.addEventListener('click', () => { } }); -clearBtn.addEventListener('click', clearAll); - // Handle keyboard shortcuts document.addEventListener('keydown', e => { - // Ctrl/Cmd + K to clear - if ((e.ctrlKey || e.metaKey) && e.key === 'k') { - e.preventDefault(); - clearAll(); - } - // Ctrl/Cmd + C when output is focused to copy if ((e.ctrlKey || e.metaKey) && e.key === 'c' && document.activeElement === outputText) { copyToClipboard(); diff --git a/app/index.html b/app/index.html index a8dc4f4..ceeb724 100644 --- a/app/index.html +++ b/app/index.html @@ -65,8 +65,6 @@ >