mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-17 13:39:46 +08:00
Updated keydown to revert theme if previewing
This commit is contained in:
parent
9742e73c36
commit
9deb0a7de1
1 changed files with 3 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue