From 6eb73a58118ce33d6b79fccbc4eb38b9413e90e4 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 13 Sep 2020 02:19:21 +0100 Subject: [PATCH] added out of focus warning button to the settings page --- public/index.html | 14 ++++++++++++++ public/js/settings.js | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/public/index.html b/public/index.html index 57a4e7ea2..188c76d8a 100644 --- a/public/index.html +++ b/public/index.html @@ -2364,6 +2364,20 @@ +
+

out of focus warning

+
+ Shows an out of focus reminder after 1 second of being 'out of focus' (not being able to type). +
+
+
+ hide +
+
+ show +
+
+
diff --git a/public/js/settings.js b/public/js/settings.js index 9c89c643b..0a82d3e05 100644 --- a/public/js/settings.js +++ b/public/js/settings.js @@ -154,6 +154,10 @@ settingsGroups.swapEscAndTab = new SettingsGroup( "swapEscAndTab", setSwapEscAndTab ); +settingsGroups.showOutOfFocusWarning = new SettingsGroup( + "showOutOfFocusWarning", + setShowOutOfFocusWarning +); settingsGroups.colorfulMode = new SettingsGroup( "colorfulMode", setColorfulMode