mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed cut bug, deleted _copyPaste.js
This commit is contained in:
@ -55,13 +55,13 @@ const TopMenuModule = (() => {
|
||||
break;
|
||||
// REFACTOR: move the binding to the Selection IIFE or something like that once it's done
|
||||
case 'Paste':
|
||||
Events.on('click', currSubmenuButton, pasteSelection);
|
||||
Events.on('click', currSubmenuButton, function(){Events.emit("ctrl+v");});
|
||||
break;
|
||||
case 'Copy':
|
||||
Events.on('click', currSubmenuButton, copySelection);
|
||||
Events.on('click', currSubmenuButton, function(){Events.emit("ctrl+c");});
|
||||
break;
|
||||
case 'Cut':
|
||||
Events.on('click', currSubmenuButton, cutSelectionTool);
|
||||
Events.on('click', currSubmenuButton, function(){Events.emit("ctrl+x");});
|
||||
break;
|
||||
case 'Cancel':
|
||||
//Events.on('click', currSubmenuButton, tool.pencil.switchTo);
|
||||
|
Reference in New Issue
Block a user