Skip to content

Conversation

@JayDoubleu
Copy link

Summary

  • Allow Ctrl+C/V/X keyboard shortcuts to work in the location bar text input (previously triggered file copy/cut/paste operations instead)
  • Add right-click context menu with "Copy path" option for the location bar text input

Changes

  1. Keyboard shortcuts fix: Skip file Copy/Cut/Paste key bindings when the location bar is being edited, allowing the text input widget to handle clipboard operations
  2. Context menu: Add a right-click "Copy path" menu option that copies the full path to clipboard

Fixes #1505

Test plan

  • Open cosmic-files and press Ctrl+L to edit the location bar
  • Select text and press Ctrl+C - should copy selected text (not trigger file copy)
  • Press Ctrl+V - should paste clipboard content into the text input
  • Right-click on the location bar text input - should show "Copy path" menu
  • Click "Copy path" - should copy the full path to clipboard

🤖 Generated with Claude Code

JayDoubleu and others added 3 commits January 7, 2026 22:38
Skip file Copy/Cut/Paste key bindings when the location bar is being
edited. This allows the text input widget to handle clipboard shortcuts
(Ctrl+C, Ctrl+V, Ctrl+X) for text operations instead of triggering
file operations.

Fixes pop-os#1505

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add a "Copy path" context menu option when right-clicking on the
location bar text input. This provides an alternative way to copy the
full path to the clipboard.

Relates to pop-os#1505

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@iamkartiknayak
Copy link
Contributor

iamkartiknayak commented Jan 13, 2026

Cut, Copy, and Paste seem to be working as expected on the latest master branch.

@iamkartiknayak
Copy link
Contributor

Just tested this out

The newly implemented context menu cannot be dismissed when clicked elsewhere. Additionally, if the address bar is out of focus, it gets hidden and is shown again when the address bar is focused in edit mode. Context menu stays active indefinitely.

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.

Cannot copy path from location/address bar

2 participants