@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 12 lines 618 Bytes
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { isPasteAsTextShortcut } from "./textPaste.ts";
4
5 describe("isPasteAsTextShortcut", () => {
6 it("accepts the V key on non-Latin layouts but follows the letter on Latin ones", () => {
7 const chord = { metaKey: false, ctrlKey: true, shiftKey: true, altKey: false };
8 expect(isPasteAsTextShortcut({ ...chord, key: "М", code: "KeyV" }, false)).toBe(true);
9 expect(isPasteAsTextShortcut({ ...chord, key: "k", code: "KeyV" }, false)).toBe(false);
10 expect(isPasteAsTextShortcut({ ...chord, key: "V", code: "Period" }, false)).toBe(true);
11 });
12 });