mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:56:43 +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
|
// Duplicate entities if Ctrl is pressed. This will make a
|
||||||
// copy of the selected entities and move the _original_ entities, not
|
// copy of the selected entities and move the _original_ entities, not
|
||||||
// the new ones.
|
// 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();
|
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
||||||
var ids = [];
|
var ids = [];
|
||||||
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
||||||
|
@ -2273,7 +2275,9 @@ SelectionDisplay = (function() {
|
||||||
// Duplicate entities if Ctrl is pressed. This will make a
|
// Duplicate entities if Ctrl is pressed. This will make a
|
||||||
// copy of the selected entities and move the _original_ entities, not
|
// copy of the selected entities and move the _original_ entities, not
|
||||||
// the new ones.
|
// 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();
|
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
||||||
var ids = [];
|
var ids = [];
|
||||||
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue