Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add copy on ctrl/command+shift+c and selection to web terminal#20129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
code-asher wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromasher/webterm-copy

Conversation

code-asher
Copy link
Member

Closes#20044

@code-ashercode-asher changed the titleCopy on ctrl/command+shift+c and selectionfeat: add copy on ctrl/command+shift+c and selection to web terminalOct 2, 2025
@code-ashercode-asherforce-pushed theasher/webterm-copy branch 2 times, most recently from9dd55b4 to649839aCompareOctober 2, 2025 00:56
@code-ashercode-asher marked this pull request as ready for reviewOctober 2, 2025 01:14
@code-ashercode-asher requested a review froma teamOctober 2, 2025 01:14
Copy link
Member

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Things look good to me overall, but like I mentioned in one of the comments, I feel like we should delegate some of the clipboard functionality to theuseClipboard hook

if(ev.type==="keydown"){
copySelection();
}
returnfalse;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Just to make sure I'm understanding: what do the boolean return values do for the terminal? I would've thought that it stops event propagation, but then I'm also seeing theev.preventDefault

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nope the return does not stop propagation, it only tells xterm.js to do nothing. Although, at the moment xterm.js does not actually have any default behavior for these keybindings, so the default is already to do nothing.

@aslilac
Copy link
Member

I'll defer to michael here, he knows way more about the clipboard apis than me

@aslilacaslilac removed their request for reviewOctober 2, 2025 21:32
@code-ashercode-asherforce-pushed theasher/webterm-copy branch 3 times, most recently from966c34c to568e677CompareOctober 3, 2025 22:32
@code-ashercode-asher changed the base branch frommain tomes/clipboard-updateOctober 6, 2025 19:10
Base automatically changed frommes/clipboard-update tomainOctober 6, 2025 19:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ParkreinerParkreinerAwaiting requested review from ParkreinerParkreiner is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

@code-ashercode-asher

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Enhanced Copy/Paste Support for Web Terminal
3 participants
@code-asher@aslilac@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp