Updated keydown to revert theme if previewing

This commit is contained in:
willerbee 2020-10-14 14:05:48 +08:00 committed by GitHub
parent 9742e73c36
commit 9deb0a7de1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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") {