"tab" key doesn't close Open/Close RS Inventory UIs
Spongman opened this issue ยท 6 comments
Describe the bug
Tab doesn't close Grid UIs when bound to "Open/Close Inventory"
How can we reproduce this bug or crash?
- bind "Tab" key to "Open/Close Inventory"
- in-game, hit "Tab" a few times. note: it toggles the inventory open/closed.
- open a vanilla Furnace. hit "Tab" to close it.
- open an Enchanting Table. hit "Tab" to close it.
- open a Mekanism Crusher. hit "Tab" to close it.
- open a Cyclic Combustion Generator. hit "Tab" to close it.
- open a Function Storage drawer UI. hit "Tab" to close it.
- open an AE2 Insciber UI. hit "Tab" to close it.
- open a ForceCraft furnace. hit "Tab" to close it.
- open a Refined Storage Grid. hit "Tab" to close it. it doesn't work.
What Minecraft version is this happening on?
Minecraft 1.19.2
What Forge version is this happening on?
43.2.6
What Refined Storage version is this happening on?
1.11.6
Relevant log output
No response
'Tab' is only bound to vanilla 'Open/Close Inventory'. Are you able to reproduce this issue locally?
No. Closing the grid with tab works just fine with inventory bound to tab.
It does not work if you have autoselect enabled. Since you would be typing the tab symol into the search bar.
what purpose does "typing the tab symbol into the search bar" have?
I do have autoselect enabled.
Since 'Tab' doesn't actually do anything in that instance, can you just fall-back to the keybind behavior? This is a pretty common UI behavior, eg. in Google Chrome, if you put the caret in the URI bar andd hit tab, it doesn't insert a tab character into the URI (not a valid character for URIs anyway), it instead defaults back to the default tab-key behavior (in this case tabbing focus around controls).
We do respect this with the "e" key. If you press E while not focusing the search bar, it'll close the UI.
If you press E while focusing the search bar, it'll type E in your search bar.
What you're asking for is, effectively, an exception for the tab key because it doesn't make sense to type that in the bar.