#382 delete selected elements shortcut issue fixed
parent
5c86b4f085
commit
8c3ff71043
|
@ -102,6 +102,10 @@ class Editor extends EditorStartup {
|
|||
{ key: [ 'alt+shift+arrowdown', true ], fn: () => { this.svgCanvas.cloneSelectedElements(0, 10); } },
|
||||
{ key: [ 'alt+shift+arrowleft', true ], fn: () => { this.svgCanvas.cloneSelectedElements(-10, 0); } },
|
||||
{ key: [ 'alt+shift+arrowright', true ], fn: () => { this.svgCanvas.cloneSelectedElements(10, 0); } },
|
||||
{ key: [ 'delete/backspace', true ], fn: () => {
|
||||
if (!isNullish(this.selectedElement) || this.multiselected)
|
||||
this.svgCanvas.deleteSelectedElements();
|
||||
} },
|
||||
{ key: 'a', fn: () => { this.svgCanvas.selectAllInCurrentLayer(); } },
|
||||
{ key: modKey + 'a', fn: () => { this.svgCanvas.selectAllInCurrentLayer(); } },
|
||||
{ key: modKey + 'x', fn: () => { this.cutSelected(); } },
|
||||
|
|
|
@ -138,7 +138,7 @@ export default {
|
|||
tool_source: 'Edit Source',
|
||||
wireframe_mode: 'Wireframe Mode',
|
||||
clone: 'Duplicate Element(s) [D]',
|
||||
del: 'Delete Element(s) [Delete/Backspace]',
|
||||
del: 'Delete Element(s)',
|
||||
group_elements: 'Group Elements [G]',
|
||||
make_link: 'Make (hyper)link',
|
||||
set_link_url: 'Set link URL (leave empty to remove)',
|
||||
|
|
|
@ -681,7 +681,7 @@ class TopPanel {
|
|||
* @returns {void}
|
||||
*/
|
||||
deleteSelected() {
|
||||
if (!isNullish(this.editor.selectedElement) || this.multiselected) {
|
||||
if (!isNullish(this.editor.selectedElement) || this.editor.multiselected) {
|
||||
this.editor.svgCanvas.deleteSelectedElements();
|
||||
}
|
||||
}
|
||||
|
@ -770,7 +770,7 @@ class TopPanel {
|
|||
<div class="toolset">
|
||||
<div class="tool_sep"></div>
|
||||
<se-button id="tool_clone" title="${i18next.t('tools.clone')}" shortcut="D" src="./images/clone.svg"></se-button>
|
||||
<se-button id="tool_delete" title="${i18next.t('tools.del')}" shortcut="BACKSPACE" src="./images/delete.svg">
|
||||
<se-button id="tool_delete" title="${i18next.t('tools.del')}" shortcut="Delete/Backspace" src="./images/delete.svg">
|
||||
</se-button>
|
||||
</div>
|
||||
<div class="toolset">
|
||||
|
|
Loading…
Reference in New Issue