I’m new to babylonjs. I learned that I can do multiple block selection in node material editor by pressing ctrl and holding left mouse button.
The problem is, I’m using a macbook pro, and everytime I try to do the multiple selection, the macintosh just interpret my action as doing right mouse click.I have searched for solutions to change the behavior ,but found there is no way to properly handle the problem.
Thank you all. Forgive my poor English.
Some friends mentioned that cmd+click can do multiple selection. but that is not the same as ctrl+mouse draging. ctrl+mouse draging can do ‘rectangle selction’. It’s more convinient to have ctrl+mouse draging than cmd+click when I need to have many blocks to be selected.
Yeah I did try to add that but it seems like it wasn’t enough @PolygonalSun do you have any thoughts on how support for multi select with cmd can be added?
Try holding down the “command” key while clicking on multiple blocks, it works on my MacBook now. Maybe it just needs to be added to the documentation if it says to use the control key somewhere?
Hey @carolhmj, like @Blake had mentioned, you should be able to use the Command key on MacOS in the same manner as the Control key on Windows. They are effectively the same kind of button (mostly). IIRC, what we think of as right-click on MacOS is pretty much the left-click+Control macro which would explain why Ctrl-click behaves the way it did for @Barry.
Whenever I try to use the CMD + left click to bring up the rectangle select, it doesn’t work for me. It kinda feels like it’s not recognizing that the CMD (Meta) key is pressed to start the selection process.
Returns a boolean value that is true if the Meta key (on Mac keyboards, the ⌘ Command key; on Windows keyboards, the Windows key (⊞)) was active when the key event was generated.
It looks like the problem was that only ctrl was checked when drag-selecting, here’s a little fix to check _multiKeyIsPressed, instead of just ctrl, that’s working locally on my MacBook.