fix hotkey headers (thx @satgo1546)

This commit is contained in:
ed 2026-03-06 22:02:32 +00:00
parent b01527413b
commit de1d9d8b75
2 changed files with 3 additions and 3 deletions

View file

@ -6049,7 +6049,7 @@ function hkhelp() {
html.push('<table>'); html.push('<table>');
for (var a = 0; a < c.length; a++) for (var a = 0; a < c.length; a++)
try { try {
if (c[a].length != 2) if (!Array.isArray(c[a]))
html.push('<tr><th colspan="2">' + esc(c[a]) + '</th></tr>'); html.push('<tr><th colspan="2">' + esc(c[a]) + '</th></tr>');
else { else {
var t1 = c[a][0].replace('⇧', '<b>⇧</b>'); var t1 = c[a][0].replace('⇧', '<b>⇧</b>');

View file

@ -26,7 +26,7 @@ Ls.chi = {
"hks": [ "hks": [
[ [
"杂项 ", // trailing space to ensure string is not treated as an array of 2 chars "杂项",
["ESC", "关闭各种窗口"], ["ESC", "关闭各种窗口"],
"文件管理器", "文件管理器",
@ -47,7 +47,7 @@ Ls.chi = {
["⇧ ↑/↓", "选择上一个/下一个文件"], ["⇧ ↑/↓", "选择上一个/下一个文件"],
["ctrl-A", "选择所有文件 / 文件夹"] ["ctrl-A", "选择所有文件 / 文件夹"]
], [ ], [
"导航 ", // trailing space "导航",
["B", "切换面包屑导航 / 导航窗格"], ["B", "切换面包屑导航 / 导航窗格"],
["I/K", "上一个/下一个文件夹"], ["I/K", "上一个/下一个文件夹"],
["M", "父文件夹(或折叠当前文件夹)"], ["M", "父文件夹(或折叠当前文件夹)"],