mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 23:25:53 +08:00
Prevent text input from escape key in Safari
This commit is contained in:
parent
11b48af4f6
commit
9afd4dbce9
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue