mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-29 18:15:46 +08:00
changed keymapStyle "off" to "staggered"
This commit is contained in:
parent
f27709890e
commit
dc1a3eec17
2 changed files with 4 additions and 4 deletions
|
@ -1248,7 +1248,7 @@
|
|||
<h1>keymap style</h1>
|
||||
<div class="text">Displays the keymap in a different style.</div>
|
||||
<div class="buttons">
|
||||
<div class="button" keymapStyle="off" tabindex="0" onclick="this.blur();">off</div>
|
||||
<div class="button" keymapStyle="staggered" tabindex="0" onclick="this.blur();">staggered</div>
|
||||
<div class="button" keymapStyle="matrix" tabindex="0" onclick="this.blur();">matrix</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -40,7 +40,7 @@ let defaultConfig = {
|
|||
stopOnError: false,
|
||||
showAllLines: false,
|
||||
keymapMode: "off",
|
||||
keymapStyle: "off",
|
||||
keymapStyle: "staggered",
|
||||
keymapLayout: "qwerty",
|
||||
fontFamily: "Roboto_Mono",
|
||||
smoothLineScroll: false,
|
||||
|
@ -794,7 +794,7 @@ function changeKeymapMode(mode, nosave) {
|
|||
}
|
||||
|
||||
function changeKeymapStyle(style, nosave) {
|
||||
if (style === "off") {
|
||||
if (style === "staggered") {
|
||||
$(".r1, .r2, .r3, .r4").removeClass("matrix");
|
||||
$(".r5").removeClass("matrixSpace");
|
||||
$("#KeyLeftBracket").removeClass("hide-key");
|
||||
|
@ -806,7 +806,7 @@ function changeKeymapStyle(style, nosave) {
|
|||
$(".r5").addClass("matrixSpace");
|
||||
$("#KeyLeftBracket").addClass("hide-key");
|
||||
$("#KeyRightBracket").addClass("hide-key");
|
||||
$("#KeyQuote").addClass("hide-key");
|
||||
$("#KeyQuote").addClass("hide-key");
|
||||
}
|
||||
config.keymapStyle = style;
|
||||
if (!nosave) saveConfigToCookie();
|
||||
|
|
Loading…
Add table
Reference in a new issue