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

View File

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