mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #290: cleanup unused code in SelectionManager
This commit is contained in:
parent
f4cbabe2ce
commit
8e3ac50f81
@ -166,10 +166,6 @@
|
|||||||
ns.SelectionManager.prototype.onSelectionMoved_ = function(evt, colDiff, rowDiff) {
|
ns.SelectionManager.prototype.onSelectionMoved_ = function(evt, colDiff, rowDiff) {
|
||||||
if (this.currentSelection) {
|
if (this.currentSelection) {
|
||||||
this.currentSelection.move(colDiff, rowDiff);
|
this.currentSelection.move(colDiff, rowDiff);
|
||||||
if (evt.shiftKey) {
|
|
||||||
this.cut();
|
|
||||||
this.paste();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
console.error('Bad state: No currentSelection set when trying to move it in SelectionManager');
|
console.error('Bad state: No currentSelection set when trying to move it in SelectionManager');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user