kfb-view 3.0.6 → 3.0.7
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/.idea/workspace.xml +58 -34
- package/config/webpack.dev.conf.js +3 -3
- package/example/index.js +16 -49
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/view.js +1 -1
package/package.json
CHANGED
package/src/view.js
CHANGED
|
@@ -352,8 +352,8 @@ function initEvent(kv) {
|
|
|
352
352
|
});
|
|
353
353
|
// 键盘事件会连续触发两次
|
|
354
354
|
kv.viewer.addHandler('canvas-key', delayedTrigger((e) => {
|
|
355
|
-
e.preventDefaultAction = true;
|
|
356
355
|
const {originalEvent} = e;
|
|
356
|
+
e.preventDefaultAction = originalEvent.key.indexOf('Arrow') === -1;
|
|
357
357
|
handlerCacheEvent(originalEvent, kv);
|
|
358
358
|
if (kv.board?.isInDraw) {
|
|
359
359
|
kv.board?.onCanvasKey?.(e);
|