jellies-draw 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jellies-draw",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "A drawer for jellies",
5
5
  "private": false,
6
6
  "main": "./src/index.js",
@@ -110,10 +110,7 @@ export default {
110
110
  }
111
111
  },
112
112
  _handleKeydown(event) {
113
- if (!this.hasShortCuts) {
114
- return
115
- }
116
- if (Properties.isCanvasPenetrable && !event.shiftKey) {
113
+ if (!this.hasShortCuts || Properties.isCanvasPenetrable) {
117
114
  return
118
115
  }
119
116
  if (event.key === 'Escape') {
@@ -125,7 +122,7 @@ export default {
125
122
  this._handleNodesShortCuts(event);
126
123
  }
127
124
  } else if (event.shiftKey) {
128
- if (!this.isEditingText) {
125
+ if (!this.isEditingText && Properties.isUsingDrawingTool) {
129
126
  this._handlePropertiesShortCuts(event);
130
127
  }
131
128
  } else if (event.altKey) {