feat(settings): add custom shortcut settings

This commit is contained in:
t8y2 committed 2026-05-15 17:53:51 +08:00
1 parent 8d73e6e00d
commit 6db2430994
12 files changed
+417 -78

No files matched your search

+12
View File
@@ -25,3 +25,15 @@ test("settings action footer stays at the bottom of the content pane", () => {
assert.match(source, /class="[^"]*min-h-full[^"]*flex-col[^"]*"/);
assert.match(source, /<DialogFooter class="[^"]*mt-auto[^"]*"/);
});
test("settings dialog has a shortcuts category", () => {
assert.match(source, /value: "shortcuts"/);
assert.match(source, /activeSettingsTab === ['"]shortcuts['"]/);
assert.match(source, /SHORTCUT_DEFINITIONS/);
});
test("shortcut settings capture custom keydown input instead of fixed select options", () => {
assert.match(source, /onShortcutKeydown/);
assert.match(source, /@keydown="\(event: KeyboardEvent\) => onShortcutKeydown/);
assert.doesNotMatch(source, /definition\.options/);
});