Bug 371900, delete command is not handled in ShortcutKeyDefinitions.cpp so does not need to be defined as internal, r=mak

Differential Revision: https://phabricator.services.mozilla.com/D135491
This commit is contained in:
Neil Deakin 2022-01-11 20:02:31 +00:00
parent 5f1ff58926
commit b9ea937848
2 changed files with 4 additions and 3 deletions

View File

@ -74,8 +74,9 @@ add_task(async function test_create_and_remove_bookmarks() {
"places"
);
// Execute the delete command and check bookmark has been removed.
PO._places.controller.doCommand("cmd_delete");
// Press the delete key and check that the bookmark has been removed.
gLibrary.document.getElementById("placesList").focus();
EventUtils.synthesizeKey("VK_DELETE", {}, gLibrary);
await promiseItemRemovedNotification;

View File

@ -52,7 +52,7 @@ window.addEventListener(
<command id="cmd_cut" internal="true" />
<command id="cmd_copy" internal="true" />
<command id="cmd_paste" internal="true" />
<command id="cmd_delete" internal="true" />
<command id="cmd_delete" />
<command id="cmd_selectAll" internal="true" />
<command id="cmd_switchTextDirection" />
</commandset>