Skip to content

fix(desktop): restore clipboard shortcuts and edit context menu - #22

Open
jk2lx wants to merge 1 commit into
srl-labs:mainfrom
jk2lx:fix/desktop-edit-context-menu
Open

fix(desktop): restore clipboard shortcuts and edit context menu#22
jk2lx wants to merge 1 commit into
srl-labs:mainfrom
jk2lx:fix/desktop-edit-context-menu

Conversation

@jk2lx

@jk2lx jk2lx commented Jul 24, 2026

Copy link
Copy Markdown

Summary

  • Menu.setApplicationMenu(null) was removing the Edit roles, so Cmd/Ctrl+C/V/X did nothing in the desktop app (especially noticeable on macOS).
  • Electron also does not show a right-click edit menu by default, so paste/copy from the OS menu/context menu was missing in inputs.
  • Adds a small application Edit menu again, and an in-page context menu for editable fields / log text that picks up the same paper colours as the existing MUI menus.
  • Limits drag-select to inputs, textareas, and similar text surfaces so you cannot highlight the whole chrome by accident.

Test plan

  • Build/run the desktop app on macOS
  • Confirm Cmd+C / Cmd+V / Cmd+X work in text fields
  • Right-click an input → Cut/Copy/Paste appear and work
  • Right-click log output → Copy / Select All
  • Check light and dark theme: menu should look like the explorer/canvas menus, not pure white
  • Labels/buttons in the UI should not be drag-selectable

@FloSch62 Could you please review this PR?

Menu.setApplicationMenu(null) drops the Edit roles that bind
Cmd/Ctrl+C/V/X. Add a minimal app/edit menu, plus an in-page
context menu for inputs/logs that follows the clab-ui colours.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant