From 86158a46383fa801427c1c97e1d269a76ddfc462 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 22 Dec 2020 18:00:33 +0000 Subject: [PATCH] updated out of focus warning, sending the key event through if showoutoffocuswarning is disabled --- src/js/script.js | 2 +- static/index.html | 28 +++++++++++++++++++--------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 49c66a37f..ab439be76 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4535,7 +4535,7 @@ $(document).keydown(function (event) { if (pageTestActive && !commandLineVisible && !modePopupVisible) { if (!wordsFocused && event.key !== "Enter") { focusWords(); - return; + if (config.showOutOfFocusWarning) return; } } else { return; diff --git a/static/index.html b/static/index.html index e2e740579..a4c46c8e2 100644 --- a/static/index.html +++ b/static/index.html @@ -766,8 +766,8 @@
Support Monkeytype
- Thank you so much for thinking about supporting this project. - It would not be possible without you and your continued support. + Thank you so much for thinking about supporting this project. It would + not be possible without you and your continued support.
@@ -775,13 +775,25 @@
Enable Ads
- +
Donate
- +
-
Become
a Patron
+
+ Become +
+ a Patron +
@@ -999,7 +1011,7 @@
@@ -3545,9 +3557,7 @@
- - Support this project - + Support this project