mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 11:51:49 +09:00
shell now accepts envvar KEYBOARD and changes key layout on the fly
This commit is contained in:
@@ -426,7 +426,7 @@ con.KEY_INSERT = 210;
|
||||
con.KEY_DELETE = 211;
|
||||
con.KEY_BACKSPACE = 8;
|
||||
con.KEY_TAB = 9;
|
||||
con.KEY_RETURN = 13;
|
||||
con.KEY_RETURN = 10;
|
||||
con.getch = function() {
|
||||
return sys.readKey();
|
||||
};
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user