Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Enhancement add contenxt menu copy to clipboard#5704

Merged
bomsy merged 4 commits into
firefox-devtools:masterfrom
zeoneo:enhancement-add-contenxt-menu-copy-to-clipboard
Mar 18, 2018
Merged

Enhancement add contenxt menu copy to clipboard#5704
bomsy merged 4 commits into
firefox-devtools:masterfrom
zeoneo:enhancement-add-contenxt-menu-copy-to-clipboard

Conversation

@zeoneo

@zeoneo zeoneo commented Mar 17, 2018

Copy link
Copy Markdown
Contributor

Fixes Issue: #5341

Summary of Changes

  • Add item "Copy to clipboard" to editor context menu
  • Add item "Copy to clipboard" to source tab context menu

Test Plan

  • Open any source using Command + P

  • Go to Editor and open context menu (right+click)

  • Clicking on "Copy to clipboard" copies current source to clipboard

  • Try to paste to copied source somewhere else. It should match currently open editor source.

  • Right click on source tab panel

  • Context menu is expected to show item "Copy to clipboard"

  • If you have open context menu on tab of currently selected source, then "Copy to clipboard" should be in enabled state.

  • Click on "Copy to clipboard" item, it should have copied currently open source to clipboard.

  • Try pasting copied source somewhere else.

Screenshots/Videos (OPTIONAL)

mar-17-2018 16-46-47

Comment thread assets/panel/debugger.properties Outdated

# LOCALIZATION NOTE (copyToClipboard): This is the text that appears in the
# context menu to copy the complete source of file open.
copyToClipboard=Copy to clipboard

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please use copyToClipboard.label for this one (and update the reference in the commit accordingly)

nit on comment: "of file open" -> "of the open file"

Comment thread assets/panel/debugger.properties Outdated
# that collapses the left and right panes in the debugger UI.
collapsePanes=Collapse panes

# LOCALIZATION NOTE (copyToClipboard): This is the text that appears in the

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You need to change it here too (copyToClipboard.label).

@flodolo flodolo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks, changes to the .properties file look good. Leaving the code to a suitable reviewer ;-)

@bomsy bomsy merged commit cf48fa2 into firefox-devtools:master Mar 18, 2018
jasonLaster pushed a commit that referenced this pull request Mar 21, 2018
* Add copy to clipboard item to context menus(Source Editor Context Menu, Tab Contenxt Menu)

* Change context menu label to 'Copy to clipboard'. Avoid unnecessary call to getRawSourceURL.

* Change "copyToClipboard" to "copyToClipboard.label" in debugger.properties.

* Change in Localization note for copyToClipboard.label
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants