Added possibility to select the rectangular selection tool

The user can now select the rectangular selection tool. Deleted the m shortcut for the pan tool and used it to shortcut to the rectangular selection tool. The pan tool can already be selected with the p button.
This commit is contained in:
unsettledgames
2020-03-04 12:42:15 +01:00
parent 6995ccb2ee
commit 11337b689b
4 changed files with 17 additions and 3 deletions

View File

@ -69,4 +69,9 @@ on('click',"zoom-out-button", function(){
for (let i=1; i<layers.length; i++) {
layers[i].copyData(layers[0]);
}
}, false);
//rectangular selection button
on('click', "rectselect-button", function(){
changeTool('rectselect');
}, false);