changed keymapStyle "off" to "staggered"

This commit is contained in:
David Martin 2020-08-11 01:34:09 -05:00
parent f27709890e
commit dc1a3eec17
2 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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();