scratch-blocks 2.0.7 → 2.0.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context_menu_items.d.ts","sourceRoot":"","sources":["../../../src/context_menu_items.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,mBAAmB,SAwBlC;AAgBD;;GAEG;AACH,wBAAgB,iBAAiB,SA2ChC;AAsCD;;;GAGG;AACH,wBAAgB,sBAAsB,SAiBrC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"context_menu_items.d.ts","sourceRoot":"","sources":["../../../src/context_menu_items.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,mBAAmB,SAwBlC;AAgBD;;GAEG;AACH,wBAAgB,iBAAiB,SA2ChC;AAsCD;;;GAGG;AACH,wBAAgB,sBAAsB,SAiBrC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,SAuBnC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,SAwBlC"}
|
package/package.json
CHANGED
|
@@ -163,6 +163,7 @@ export function registerCopyShortcut() {
|
|
|
163
163
|
Blockly.ShortcutRegistry.registry.register(
|
|
164
164
|
{
|
|
165
165
|
...original,
|
|
166
|
+
allowCollision: true, // we're intentionally overriding the default handler
|
|
166
167
|
callback(workspace, e, shortcut, scope) {
|
|
167
168
|
const focused = scope.focusedNode
|
|
168
169
|
if (focused instanceof Blockly.BlockSvg && !focused.isInFlyout) {
|
|
@@ -178,7 +179,7 @@ export function registerCopyShortcut() {
|
|
|
178
179
|
return original.callback?.(workspace, e, shortcut, scope) ?? false
|
|
179
180
|
},
|
|
180
181
|
},
|
|
181
|
-
true,
|
|
182
|
+
true, // allowOverrides: we're intentionally overriding the default handler
|
|
182
183
|
)
|
|
183
184
|
}
|
|
184
185
|
|
|
@@ -191,6 +192,7 @@ export function registerCutShortcut() {
|
|
|
191
192
|
Blockly.ShortcutRegistry.registry.register(
|
|
192
193
|
{
|
|
193
194
|
...original,
|
|
195
|
+
allowCollision: true, // we're intentionally overriding the default handler
|
|
194
196
|
callback(workspace, e, shortcut, scope) {
|
|
195
197
|
const focused = scope.focusedNode
|
|
196
198
|
if (focused instanceof Blockly.BlockSvg && !focused.isInFlyout) {
|
|
@@ -207,6 +209,6 @@ export function registerCutShortcut() {
|
|
|
207
209
|
return original.callback?.(workspace, e, shortcut, scope) ?? false
|
|
208
210
|
},
|
|
209
211
|
},
|
|
210
|
-
true,
|
|
212
|
+
true, // allowOverrides: we're intentionally overriding the default handler
|
|
211
213
|
)
|
|
212
214
|
}
|