mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 14:47:19 +02:00
Merge pull request #8542 from imgntn/nobackspace
No more delete with backspace in edit.js
This commit is contained in:
commit
ed2ebd122b
1 changed files with 2 additions and 2 deletions
|
@ -803,7 +803,7 @@ function setupModelMenus() {
|
|||
menuName: "Edit",
|
||||
menuItemName: "Delete",
|
||||
shortcutKeyEvent: {
|
||||
text: "backspace"
|
||||
text: "delete"
|
||||
},
|
||||
afterItem: "Entities",
|
||||
grouping: "Advanced"
|
||||
|
@ -1215,7 +1215,7 @@ Controller.keyReleaseEvent.connect(function (event) {
|
|||
cameraManager.keyReleaseEvent(event);
|
||||
}
|
||||
// since sometimes our menu shortcut keys don't work, trap our menu items here also and fire the appropriate menu items
|
||||
if (event.text === "BACKSPACE" || event.text === "DELETE") {
|
||||
if (event.text === "DELETE") {
|
||||
deleteSelectedEntities();
|
||||
} else if (event.text === "ESC") {
|
||||
selectionManager.clearSelections();
|
||||
|
|
Loading…
Reference in a new issue