added delete

This commit is contained in:
booploops 2022-06-02 22:21:19 -07:00
parent 9185f75110
commit 0f1f6c1e8f
2 changed files with 9 additions and 2 deletions

View file

@ -215,6 +215,7 @@
"action.cut": "Cut", "action.cut": "Cut",
"action.paste": "Paste", "action.paste": "Paste",
"action.selectAll": "Select All", "action.selectAll": "Select All",
"action.delete": "Delete",
"action.edit": "Edit", "action.edit": "Edit",
"action.done": "Done", "action.done": "Done",
"action.editTracklist": "Edit Tracklist", "action.editTracklist": "Edit Tracklist",

View file

@ -325,6 +325,12 @@ document.addEventListener(
document.execCommand("paste"); document.execCommand("paste");
}, },
}, },
delete: {
name: app.getLz("action.delete"),
action: function () {
document.execCommand("delete");
},
},
selectAll: { selectAll: {
name: app.getLz("action.selectAll"), name: app.getLz("action.selectAll"),
action: function () { action: function () {
@ -332,8 +338,8 @@ document.addEventListener(
}, },
}, },
}, },
} };
app.showMenuPanel(menuPanel, e) app.showMenuPanel(menuPanel, e);
} }
}, },
false false