mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 13:01:10 +08:00
Merge pull request #17 from mwahlig:fix/safari-escape
Prevent text input from escape key in Safari
This commit is contained in:
commit
536401f458
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…
Reference in a new issue