mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 09:09:53 +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",
|
menuName: "Edit",
|
||||||
menuItemName: "Delete",
|
menuItemName: "Delete",
|
||||||
shortcutKeyEvent: {
|
shortcutKeyEvent: {
|
||||||
text: "backspace"
|
text: "delete"
|
||||||
},
|
},
|
||||||
afterItem: "Entities",
|
afterItem: "Entities",
|
||||||
grouping: "Advanced"
|
grouping: "Advanced"
|
||||||
|
@ -1215,7 +1215,7 @@ Controller.keyReleaseEvent.connect(function (event) {
|
||||||
cameraManager.keyReleaseEvent(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
|
// 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();
|
deleteSelectedEntities();
|
||||||
} else if (event.text === "ESC") {
|
} else if (event.text === "ESC") {
|
||||||
selectionManager.clearSelections();
|
selectionManager.clearSelections();
|
||||||
|
|
Loading…
Reference in a new issue