From 3919cff086ac45219d2a2d73c962d32b4f92990a Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 21 Dec 2020 16:35:26 +0000 Subject: [PATCH] added cmd + backspace to clear input --- src/js/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/script.js b/src/js/script.js index 4a9daf1cc..9237f61c7 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4649,6 +4649,8 @@ function handleBackspace(event) { if (addspace) { currentInput += " "; } + } else if(event.metaKey){ + currentInput = ""; } else { currentInput = currentInput.substring(0, currentInput.length - 1); }