You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to disable right mouse button selection in the MultiSelect? #9015
Always selecting on right-click isn't directly configurable (you can use ImGuiMultiSelectFlags_NoAutoSelect but that has other side-effects you probably don't want.)
My understanding from Omar's comment here is that it's done intentionally so that items get selected when you open their context menu (which is consistent with how other user interfaces behave.)
It'd be helpful to know why you want to disable the functionality.
I wanted to reset selection with right click, just like Escape key does. I am making a level editor for the game, there is a list of entities, you select them to perform some actions and then you want to deselect them. Pretty much only way to deselect is pressing Ecs. But I thought it would be nice to deselect with RMB, some editors/games do this and I always liked it.
Your explanation makes sense, I understand now why RMB selects by default. This is not critical issue for me, so I will either try to find workaround to have this, or just accept and move on.
Activity
PathogenDavid commentedon Oct 20, 2025
Always selecting on right-click isn't directly configurable (you can use
ImGuiMultiSelectFlags_NoAutoSelectbut that has other side-effects you probably don't want.)My understanding from Omar's comment here is that it's done intentionally so that items get selected when you open their context menu (which is consistent with how other user interfaces behave.)
It'd be helpful to know why you want to disable the functionality.
KRC2000 commentedon Oct 20, 2025
@PathogenDavid thank you for the answer.
I wanted to reset selection with right click, just like Escape key does. I am making a level editor for the game, there is a list of entities, you select them to perform some actions and then you want to deselect them. Pretty much only way to deselect is pressing Ecs. But I thought it would be nice to deselect with RMB, some editors/games do this and I always liked it.
Your explanation makes sense, I understand now why RMB selects by default. This is not critical issue for me, so I will either try to find workaround to have this, or just accept and move on.
ocornut commentedon Oct 20, 2025
I see no harm adding a flag to disable this, and I would comment on the general-purpose default behavior too.
MultiSelect: added ImGuiMultiSelectFlags_NoSelectOnRightClick. (#8200, …
ocornut commentedon Oct 20, 2025
Added
ImGuiMultiSelectFlags_NoSelectOnRightClickin 63bfad4. Let me know if that works for you.KRC2000 commentedon Oct 21, 2025
Wow, thank you, nice!
MultiSelect: added ImGuiMultiSelectFlags_NoSelectOnRightClick. (ocorn…