From fc39dcff96cbebbf4750c258db09fcb14bbcae21 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Wed, 3 Mar 2021 18:13:06 +0530 Subject: [PATCH] #78 hotkey related code comment. --- src/editor/svgedit.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/editor/svgedit.js b/src/editor/svgedit.js index a57f6177..c94495c2 100644 --- a/src/editor/svgedit.js +++ b/src/editor/svgedit.js @@ -938,10 +938,10 @@ class Editor extends EditorStartup { }; $(this).mouseup(flyoutAction); - - if (opts.key) { + // TODO: currently not trigger here + /* if (opts.key) { $(document).bind('keydown', opts.key[0] + ' shift+' + opts.key[0], flyoutAction); - } + } */ return true; }); @@ -1420,7 +1420,6 @@ class Editor extends EditorStartup { key: btn.key, isDefault: Boolean(btn.includeWith && btn.includeWith.isDefault) }]; // , refData - // {sel:'#tool_rect', fn: clickRect, evt: 'mouseup', key: 4, parent: '#tools_rect', icon: 'rect'} const pos = ('position' in opts) ? opts.position : 'last'; @@ -1456,7 +1455,8 @@ class Editor extends EditorStartup { }); } if (btn.key) { - $(document).bind('keydown', btn.key, func); + // TODO: currently not trigger here + // $(document).bind('keydown', btn.key, func); if (btn.title) { button.attr('title', btn.title + ' [' + btn.key + ']'); }