From 9deb0a7de1a765d52e6988806dc12d9d5dbde460 Mon Sep 17 00:00:00 2001 From: willerbee Date: Wed, 14 Oct 2020 14:05:48 +0800 Subject: [PATCH] Updated keydown to revert theme if previewing --- public/js/commandline.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/commandline.js b/public/js/commandline.js index 293195700..f935fe2e8 100644 --- a/public/js/commandline.js +++ b/public/js/commandline.js @@ -1542,6 +1542,9 @@ $("#commandLineWrapper").click((e) => { }); $(document).keydown((e) => { + if (isPreviewingTheme) { + previewTheme(config.theme, false); + } if (!$("#commandLineWrapper").hasClass("hidden")) { $("#commandLine input").focus(); if (e.key == ">" && config.singleListCommandLine == "manual") {