Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Adding Editing Tools to context menu #5936

Closed
VizuaaLOG opened this issue Nov 11, 2013 · 2 comments
Closed

Adding Editing Tools to context menu #5936

VizuaaLOG opened this issue Nov 11, 2013 · 2 comments
Assignees

Comments

@VizuaaLOG
Copy link
Contributor

In my repo i edited the default menus file to include the cut, copy and paste functions. The file can be found here. I added these four lines of code:

editor_cmenu.addMenuItem(Commands.EDIT_CUT);
editor_cmenu.addMenuItem(Commands.EDIT_COPY);
editor_cmenu.addMenuItem(Commands.EDIT_PASTE);
editor_cmenu.addMenuDivider();

This displays the items correctly however the function their meant to do does not work. I looked at the same items in the edit menu to make sure what i did was correct and it was. However, it still doesn't work. Have i done something wrong or is it just the way the shell works?

@ghost ghost assigned RaymondLim Nov 13, 2013
@dangoor
Copy link
Contributor

dangoor commented Nov 13, 2013

To @RaymondLim to triage and assign a priority or mark move to backlog

@peterflynn
Copy link
Member

Closing as a dupe of #2120. Note that minimal approaches like the above will never be able to work due to browser security restrictions on programmatic clipboard access (see explanations like this one for details). Those Brackets commands are actually stubs that do nothing, since the actual clipboard access is managed by the browser's native code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants