Add minAccGrace to command line

This commit is contained in:
Otard95 2021-05-30 20:26:08 +02:00
parent 97affb1206
commit b57cbcc359

View file

@ -627,7 +627,6 @@ let commandsPaceCaret = {
],
};
let commandsMinWpm = {
title: "Change min wpm mode...",
list: [
@ -672,6 +671,26 @@ let commandsMinAcc = {
],
};
let commandsMinAccGrace = {
title: "Change min accuracy grace option...",
list: [
{
id: "setMinAccGraceOff",
display: "off",
exec: () => {
UpdateConfig.setMinAccGrace("off");
},
},
{
id: "setMinAccGraceOn",
display: "on",
exec: () => {
UpdateConfig.setMinAccGrace("on");
},
},
],
};
let commandsKeymapStyle = {
title: "Change keymap style...",
list: [
@ -1533,6 +1552,16 @@ export let defaultCommands = {
Commandline.show();
},
},
{
id: "changeMinAccGrace",
display: "Change min accuracy grace option...",
alias: "mingrace",
subgroup: true,
exec: () => {
current.push(commandsMinAccGrace);
Commandline.show();
},
},
{
id: "changeOppositeShiftMode",
display: "Change opposite shift mode...",
@ -2019,7 +2048,7 @@ export let defaultCommands = {
UpdateConfig.apply(JSON.parse(input));
UpdateConfig.saveToLocalStorage();
Settings.update();
Notifications.add("Done",1);
Notifications.add("Done", 1);
} catch (e) {
Notifications.add(
"An error occured while importing settings: " + e,
@ -2032,9 +2061,8 @@ export let defaultCommands = {
id: "exportSettingsJSON",
display: "Export settings JSON",
input: true,
defaultValue:"",
exec: (input) => {
},
defaultValue: "",
exec: (input) => {},
},
],
};