Merge pull request #17 from mwahlig:fix/safari-escape

Prevent text input from escape key in Safari
This commit is contained in:
Jack Bartnik 2020-05-16 11:03:31 +01:00 committed by GitHub
commit 536401f458

View file

@ -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) {