From 5a3e0c689ba39d261f970f46cbffc2e4e3e617b4 Mon Sep 17 00:00:00 2001 From: Matt Wahlig Date: Fri, 15 May 2020 16:25:38 -0500 Subject: [PATCH] Prevent text input from escape key in Safari --- public/js/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/script.js b/public/js/script.js index cefcfd567..da908cf22 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -829,6 +829,7 @@ $(document).keypress(function(event) { if (!$("#wordsInput").is(":focus")) return; if (event["keyCode"] == 13) return; if (event["keyCode"] == 32) return; + if (event["keyCode"] == 27) return; //start the test if (currentInput == "" && inputHistory.length == 0) { if (firebase.auth().currentUser != null) {