From 79064605521d27d3173d959a94a218415e60c0fe Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Wed, 24 Feb 2021 18:45:18 +0530 Subject: [PATCH] #77 jquery hotkeys plugin changes --- src/editor/svgedit.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/editor/svgedit.js b/src/editor/svgedit.js index e77244fa..a57f6177 100644 --- a/src/editor/svgedit.js +++ b/src/editor/svgedit.js @@ -104,6 +104,8 @@ class Editor extends EditorStartup { {key: 'ctrl+shift+arrowright', fn () { curObj.rotateSelected(1, 5); }}, {key: 'shift+o', fn () { curObj.svgCanvas.cycleElement(0); }}, {key: 'shift+p', fn () { curObj.svgCanvas.cycleElement(1); }}, + {key: 'tab', fn () { curObj.svgCanvas.cycleElement(0); }}, + {key: 'shift+tab', fn () { curObj.svgCanvas.cycleElement(1); }}, {key: [modKey + 'arrowup', true], fn () { curObj.zoomImage(2); }}, {key: [modKey + 'arrowdown', true], fn () { curObj.zoomImage(0.5); }}, {key: [modKey + ']', true], fn () { curObj.moveUpDownSelected('Up'); }}, @@ -281,18 +283,6 @@ class Editor extends EditorStartup { evt.preventDefault(); } ); - - $(window).bind('keydown', 'tab', function (e) { - if (this.uiContext === 'canvas') { - e.preventDefault(); - this.selectNext(); - } - }.bind(this)).bind('keydown', 'shift+tab', function (e) { - if (this.uiContext === 'canvas') { - e.preventDefault(); - this.selectPrev(); - } - }.bind(this)); } /** * @returns {void}