[2.0.15] CustomInput is not triggered when hovering over mod's UI when there is game's control with the same sequence

Post your bugs and problems so we can fix them.
zerwiport
Inserter
Inserter
Posts: 30
Joined: Sat Mar 09, 2024 11:03 pm
Contact:

[2.0.15] CustomInput is not triggered when hovering over mod's UI when there is game's control with the same sequence

Post by zerwiport »

I decided to post it as a bug because I couldn't find any mention of it in the documentation and I was really surprised that it works this way. It's at least inconsistency.

Steps to reproduce:
1. Create a button (even frame should be enough but a button is my case)
2. Create custom-input
3. Set custom-input sequence to for example Control + Left Click
4. Set Craft 1 to Control + Left Click
5. Use sequence above UI (button, header of a frame, anything) -> it won't be triggered
6. Use sequence not above UI -> it's triggered

If I set not Craft 1 but a different control (I assume it's not UI related in some way) for example open Object's GUI to Control + Left Click then input is triggered even over UI.

Expectation:
custom-input with the same sequence as any other input is triggered even over UI not only when cursor is not over UI

Rationale:
I want to have configurable controls for interactions with my mod's UI. With the current behavior it will be misleading to users and very limiting to force them to use unique sequences in those specific cases.

Similar request: viewtopic.php?t=37658

I attached the mod to quickly reproduce it.
11-15-2024, 16-36-31.png
11-15-2024, 16-36-31.png (47.11 KiB) Viewed 59 times
Attachments
toolbars-mod_2.7.0.zip
(132.09 KiB) Downloaded 3 times
Post Reply

Return to “Bug Reports”