Skip to content

Fix: Paste issues in the context menu#3316

Merged
codebykat merged 4 commits into
trunkfrom
fix/context-paste
Apr 1, 2025
Merged

Fix: Paste issues in the context menu#3316
codebykat merged 4 commits into
trunkfrom
fix/context-paste

Conversation

@codebykat

@codebykat codebykat commented Mar 30, 2025

Copy link
Copy Markdown
Contributor

Fix

Will fix #3315
Will fix #2994

Monaco/VSCode now support paste in the browser.

We do still need to re-add the keybindings if we want labels for the keybindings. See: microsoft/monaco-editor#2882 (comment)

Test

This needs testing in multiple browsers and platforms (browser and Electron).

  1. Right click should show Cut/Copy/Paste with labels appropriate to the platform (cmd key / ctrl key)
  2. Cut/Copy/Paste should work from context menu
  3. Should also work from keyboard shortcuts
  4. Should also wrok from top-level Edit menu

Release

RELEASE-NOTES.md was updated with:

Fixed paste not working in context menu and enabled it in browsers

@codebykat codebykat self-assigned this Mar 30, 2025
Comment thread lib/boot-without-auth.tsx

window.electron?.receive('tokenLogin', (url) => {
window.electron?.receive('tokenLogin', (url: string) => {
const { searchParams } = new URL(url);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

drive-by typescript fixes

@codebykat codebykat requested a review from roundhill March 30, 2025 08:16
@codebykat codebykat marked this pull request as ready for review March 30, 2025 08:16

@roundhill roundhill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested well for me on Windows, Web and macOS 👍

@codebykat codebykat merged commit 6e0565d into trunk Apr 1, 2025
@codebykat codebykat deleted the fix/context-paste branch April 1, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: Can't use right-click context menu to paste Enable "Paste" option in Monaco contextual menu

2 participants