Merge pull request #10 from nkoder/fix_rectangle_tool_keyboard_shortcut

Add missing keyboard shortcut handler for Rectangle tool
This commit is contained in:
Nicola 2021-04-28 23:36:20 +02:00 committed by GitHub
commit 7a975976cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,10 @@ function KeyPress(e) {
case 77: case 109:
tool.rectselect.switchTo()
break;
// rectangle tool, u
case 85:
tool.rectangle.switchTo()
break;
// Paste tool
case 86: case 118:
if (keyboardEvent.ctrlKey && !dragging) {