GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(web): cover Alt-modified Insert clipboard chords · pingdotgg/t3code@4a8d326

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components
    • ThreadTerminalDrawer.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/ThreadTerminalDrawer.test.ts‎

Copy file name to clipboardExpand all lines: apps/web/src/components/ThreadTerminalDrawer.test.ts
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ describe("terminal selection actions", () => {
3939
action("terminal.paste", key("v", { ctrlKey: true, shiftKey: true, altKey: true }), false),
4040
).toBe("paste");
4141
expect(action("terminal.paste", key("v", { metaKey: true }), false)).toBe("paste");
42+
const insert = (modifiers: Partial<KeyboardEvent>) => ({
43+
...key("Insert", modifiers),
44+
code: "Insert",
45+
});
46+
expect(action("terminal.copy", insert({ ctrlKey: true }), true)).toBe("native");
47+
expect(action("terminal.copy", insert({ ctrlKey: true, altKey: true }), true)).toBe("copy");
48+
expect(action("terminal.paste", insert({ shiftKey: true }), false)).toBe("native");
49+
expect(action("terminal.paste", insert({ shiftKey: true, altKey: true }), false)).toBe("paste");
4250
expect(action("terminal.new", key("c", { ctrlKey: true }), true)).toBeNull();
4351
vi.unstubAllGlobals();
4452
});

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.