mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-02 19:09:20 +02:00
Replaced key value with key text.
Added additional comment about the specific delete key used.
This commit is contained in:
parent
cf3afa8855
commit
1ede7ed3e9
1 changed files with 5 additions and 5 deletions
|
@ -2133,19 +2133,19 @@
|
||||||
|
|
||||||
// Hacks to get the menu bar buttons to work
|
// Hacks to get the menu bar buttons to work
|
||||||
// Copy
|
// Copy
|
||||||
if (event.key === 67 && event.isControl && !event.isShifted) {
|
if (event.text.toLowerCase() === "c" && event.isControl && !event.isShifted) {
|
||||||
selectionManager.copySelectedEntities();
|
selectionManager.copySelectedEntities();
|
||||||
}
|
}
|
||||||
// Paste
|
// Paste
|
||||||
if (event.key === 86 && event.isControl && !event.isShifted) {
|
if (event.text.toLowerCase() === "v" && event.isControl && !event.isShifted) {
|
||||||
selectionManager.pasteEntities();
|
selectionManager.pasteEntities();
|
||||||
}
|
}
|
||||||
// Cut
|
// Cut
|
||||||
if (event.key === 88 && event.isControl && !event.isShifted) {
|
if (event.text.toLowerCase() === "x" && event.isControl && !event.isShifted) {
|
||||||
selectionManager.cutSelectedEntities();
|
selectionManager.cutSelectedEntities();
|
||||||
}
|
}
|
||||||
// Delete
|
// Delete - This uses the physical 'delete' key on a keyboard.
|
||||||
if (event.key === 16777223 && !event.isControl && !event.isShifted) {
|
if (event.text.toLowerCase() === "delete" && !event.isControl && !event.isShifted) {
|
||||||
createApp.deleteSelectedEntities();
|
createApp.deleteSelectedEntities();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue