mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-17 03:30:30 +02:00
Fix Cmd-clone entities on Mac
This commit is contained in:
parent
c5fe88abe6
commit
7db99cce6b
1 changed files with 6 additions and 2 deletions
|
@ -2047,7 +2047,9 @@ SelectionDisplay = (function() {
|
|||
// Duplicate entities if Ctrl is pressed. This will make a
|
||||
// copy of the selected entities and move the _original_ entities, not
|
||||
// the new ones.
|
||||
if (event.isControl || doDuplicate) {
|
||||
var isMac = Controller.getValue(Controller.Hardware.Application.PlatformMac);
|
||||
var isControl = isMac ? event.isMeta : event.isControl;
|
||||
if (isControl || doDuplicate) {
|
||||
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
||||
var ids = [];
|
||||
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
||||
|
@ -2273,7 +2275,9 @@ SelectionDisplay = (function() {
|
|||
// Duplicate entities if Ctrl is pressed. This will make a
|
||||
// copy of the selected entities and move the _original_ entities, not
|
||||
// the new ones.
|
||||
if (event.isControl) {
|
||||
var isMac = Controller.getValue(Controller.Hardware.Application.PlatformMac);
|
||||
var isControl = isMac ? event.isMeta : event.isControl;
|
||||
if (isControl) {
|
||||
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
||||
var ids = [];
|
||||
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
||||
|
|
Loading…
Reference in a new issue