godotengine / godotengine/godot

Problems with right clicks in the code editor

Open
#95,418 3 comments 0 reactions 0 assignees View on GitHub
bug topic:gui topic:input
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.3.rc3.official [03afb92ef]

### System information

w10 64

### Issue description

As you can see in the video, the first right-click appears to be useless, so the second right-click will open the context menu.
Every time I click I do it on a different document, I never click twice in a row on the same document, this is to highlight this behavior even more and so that it can be clearly seen that the first click is lost.

This also happens with the left button.
The error:
If you open the context menu and then select another document to display help, the first click will be lost, you will have to make a second click.

This also happens in the code editor. Especially with "single window" mode activated. The initial right click will work but the second one is completely lost and inactive, you will not be able to right click again in the code editor.

This does not happen in the function selection list and every right click you make on a function, the editor will immediately move to the function without any loss of clicks.

https://github.com/user-attachments/assets/d3471f39-fdc9-478d-8fed-ab2db53cfd78

I don't know if this has a purpose or is a bug.
What I do know is that this does not happen in Windows, for example when it shows the context menu of the files, it is enough to make a single right click on each file, it will only be necessary to make one click to show the context menu of any file even if it is already there is a menu displayed.

Here you can see

https://github.com/user-attachments/assets/634ea7b1-7d66-42ab-9b3e-b571f73ea793

### Steps to reproduce

See the vídeo, Right click each time on a new document and you can see that alternatively, one of the clicks is lost and does nothing.

### Minimal reproduction project (MRP)

...

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the lost-click behavior in the code editor on Windows 10, especially with single-window mode enabled, and compare it with the function selection list. Done means successive clicks on different documents consistently open the expected context menu or select the document without requiring a second click.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.