diff --git a/src/i18n/en_US.json b/src/i18n/en_US.json index 43729e11..be6fe7cd 100644 --- a/src/i18n/en_US.json +++ b/src/i18n/en_US.json @@ -215,6 +215,7 @@ "action.cut": "Cut", "action.paste": "Paste", "action.selectAll": "Select All", + "action.delete": "Delete", "action.edit": "Edit", "action.done": "Done", "action.editTracklist": "Edit Tracklist", diff --git a/src/renderer/index.js b/src/renderer/index.js index df31a3af..763442f4 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -325,6 +325,12 @@ document.addEventListener( document.execCommand("paste"); }, }, + delete: { + name: app.getLz("action.delete"), + action: function () { + document.execCommand("delete"); + }, + }, selectAll: { name: app.getLz("action.selectAll"), action: function () { @@ -332,8 +338,8 @@ document.addEventListener( }, }, }, - } - app.showMenuPanel(menuPanel, e) + }; + app.showMenuPanel(menuPanel, e); } }, false