TX007

組合鍵包含未知的按鍵

主控台

Text.js error TX007: Unknown key "…" in key combo "…".

發生原因

組合鍵的最後一部分必須是單一字元、具名按鍵(enter、escape、tab、up、pagedown、space 等)或功能鍵(f1–f12)。

修正方式

// BeforeuseKeymap({ "ctrl+return-key": submit });// AfteruseKeymap({ "ctrl+enter": submit });

按鍵序列以空格分隔各次按鍵("g g")。替代按鍵以逗號分隔("j, down")。