shell now accepts envvar KEYBOARD and changes key layout on the fly

This commit is contained in:
minjaesong
2021-09-24 15:02:41 +09:00
parent 012bc44845
commit f7631619d3
2 changed files with 5 additions and 1 deletions

View File

@@ -319,6 +319,10 @@ shell.coreutils = {
}
else {
_TVDOS.variables[key] = shell.replaceVarCall(value);
// if key is KEYBOARD, reload the keyboard layout
if ("KEYBOARD" == key)
input.changeKeyLayout(_TVDOS.variables.KEYBOARD || "us_qwerty");
}
}
},