mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-15 01:56:18 +08:00
fixed buttons that are supposed to change the commandline list not working
This commit is contained in:
parent
d2738fd7c2
commit
c61ba1baa5
4 changed files with 6 additions and 6 deletions
|
@ -61,7 +61,7 @@ if (Object.keys(layouts).length > 0) {
|
|||
});
|
||||
}
|
||||
|
||||
let commandsKeymapLayouts = {
|
||||
export let commandsKeymapLayouts = {
|
||||
title: "Change keymap layout...",
|
||||
list: [
|
||||
{
|
||||
|
@ -413,7 +413,7 @@ let commandsDifficulty = {
|
|||
],
|
||||
};
|
||||
|
||||
let commandsEnableAds = {
|
||||
export let commandsEnableAds = {
|
||||
title: "Set enable ads...",
|
||||
list: [
|
||||
{
|
||||
|
@ -1117,7 +1117,7 @@ let commandsPageWidth = {
|
|||
],
|
||||
};
|
||||
|
||||
let themeCommands = {
|
||||
export let themeCommands = {
|
||||
title: "Change theme...",
|
||||
list: [],
|
||||
};
|
||||
|
|
|
@ -498,6 +498,6 @@ $(document).keydown((e) => {
|
|||
});
|
||||
|
||||
$(document).on("click", "#commandLineMobileButton", () => {
|
||||
CommandlineLists.setCurrent(CommandlineLists.defaultCommands);
|
||||
CommandlineLists.setCurrent([CommandlineLists.defaultCommands]);
|
||||
show();
|
||||
});
|
||||
|
|
|
@ -246,6 +246,6 @@ export function refreshKeys(layout) {
|
|||
}
|
||||
|
||||
$(document).on("click", ".keymap .r5 #KeySpace", (e) => {
|
||||
CommandlineLists.setCurrent(CommandlineLists.commandsKeymapLayouts);
|
||||
CommandlineLists.setCurrent([CommandlineLists.commandsKeymapLayouts]);
|
||||
Commandline.show();
|
||||
});
|
||||
|
|
|
@ -249,7 +249,7 @@ $(document).on("click", "#bottom .leftright .right .current-theme", (e) => {
|
|||
// if (Config.customTheme) {
|
||||
// toggleCustomTheme();
|
||||
// }
|
||||
CommandlineLists.setCurrent(CommandlineLists.themeCommands);
|
||||
CommandlineLists.setCurrent([CommandlineLists.themeCommands]);
|
||||
Commandline.show();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue