mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-08-29 18:31:33 +00:00
Add configurable global hotkeys (#1305)
This commit is contained in:
@@ -36,6 +36,13 @@ describe("isValidKeybindingAction", () => {
|
||||
expect(isValidKeybindingAction({ type: "paste" })).toBe(true);
|
||||
});
|
||||
|
||||
it.each(["nextTab", "previousTab", "openCommandPalette"])(
|
||||
"accepts the global %s action",
|
||||
(type) => {
|
||||
expect(isValidKeybindingAction({ type })).toBe(true);
|
||||
},
|
||||
);
|
||||
|
||||
it("rejects an unknown action type", () => {
|
||||
expect(isValidKeybindingAction({ type: "explode" })).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user