Ctrl+Mouse problem

Godot Version

4.2

Question

I am attempting to work on a Godot editor plugin and utilize ctrl+left click drag to remove elements from a selection. However it seems when I do that godot captures the ctrl down and overrides it. Looking through the documentation and editor settings, I cannot find what part of the editor uses ctrl+left click/left drag nor how to disable it so I can use it for my own means in the tool script.

Is anyone familiar with this who can help me out? Thanks!

1 Like

Are you sure that is the issue?

I.e. Does it work if you use a different key?

Hi thanks, yes I have two blocks, one with no modifier keys held down for new selection and an if for shift to extend selection. I’ve tried to replace shift with ctrl and alt and neither seem to work. Even when my plug-in is disabled, in a normal 3D viewport it seems like ctrl has some affect due to what I mentioned in my post about it preventing the default box select behavior in godot.

I’m open to investigating any other ideas as I’ve run out of ways to figure out what’s capturing the ctrl key before I can use it.

I opened a fresh, blank godot project. In the 3d Viewport I tried to drag with ctrl held, and with alt held and wish shift. Only shift lets me drag select, ctrl and alt seem to have some built in functionality in the editor which is blocking a drag select. So I can’t utilize ctrl+ or alt+ for mouse movement in an editor plugin. Can anyone else verify this?

1 Like

It is an interestung issue. Can you share a completely stripped down example project where you can get a result holding one key but not the other?

Also, I would suggest searching github for relevant words and restricting results to gdscript. I have had success with that.

Have you tried twitter or discord?