Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): support Shift+Insert terminal paste #5982

Mergedaoright(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5982/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 21 additions and 1 deletion.

x
0 of 2 viewed, 2 left
16 additions and 0 deletionsapps/web/src/terminal/ghostty/surface.test.tsModified
View file
@@ -252,6 +252,22 @@
true,
});
+​
+ it("supports the conventional Shift+Insert paste shortcut", () => {
+ expect(isTerminalPasteShortcut(event({ key: "Insert", shiftKey: true }), "Linux x86_64")).toBe(
+ true,
+ );
+ expect(isTerminalPasteShortcut(event({ key: "Insert" }), "Linux x86_64")).toBe(false);
+ expect(
+ isTerminalPasteShortcut(
+ event({ key: "Insert", ctrlKey: true, shiftKey: true }),
+ "Linux x86_64",
+ ),
+ ).toBe(false);
+ expect(isTerminalPasteShortcut(event({ key: "Insert", shiftKey: true }), "MacIntel")).toBe(
+ false,
+ );
+ });
});
​
describe("isTerminalCompositionCommitInput", () => {
5 additions and 1 deletionapps/web/src/terminal/ghostty/surface.tsModified
View file
@@ -340,7 +340,11 @@
event: Pick<KeyboardEvent, "ctrlKey" | "key" | "metaKey" | "shiftKey">,
platform = navigator.platform,