mojira.dev
MC-145691

Binding "Open/Close Inventory" to Tab only opens inventory

Moderator Notice

Sorry about this I have looked into it extensively and worked together with our accessibility team. Right now we need to have a certain degree of accessibility in the game or we are not allowed to do any more updates. One of the requirements is to be able to navigate in menus without using the mouse. Tab was implemented to have that functionality and it takes president in the inventory since there is a button in there that needs to be accessible. Trying to fix this issue has highlighted several issues with our system for assigning buttons to specific actions. If we fix the bug with tab not having to be bound to accessibility we have to make it possible to rebind the focus of buttons. Doing that will clash with showing players online on a server which is tab by default and to fix this we need to do more extensive work on our underlying system. Right now it is out of scope for us to fix this in 1.14 but is definitely something we want to fix further on why it is postponed.

– @unknown in this comment

The bug

Binding "Open/Close Inventory" to Tab only allows you to open your inventory. To close it you must push Esc. This does not happen with any other key.
For instance, if you bind this function to G, pushing G will both open and close your inventory.

Linked issues

MC-145745 'TAB' Key no longer viable for Open/Close Inventory Resolved MC-145873 Tab key does not work when bound to inventory Resolved MC-145988 Remapped open inventory key not working properly Resolved MC-146084 Open/Close Inventory key does not close inventory. Resolved MC-146124 Tab in survival inventory would not close it Resolved

Comments 68

Jack McKalling

Confirmed, I have this issue as well. It seems the UI accessibility focus system, which also uses the TAB, is interfering with the inventory hotkey.

I concur. It would be very useful if this feature could be disabled or remapped.

Jack McKalling

Confirmed for 19w11b

Trojaner Unterstrich

By the way it does not even work for any other container like chests

Jack McKalling

Confirmed for 19w12a

58 more comments

Edit: Spelling and grammar

First, I'd like to follow up on Fozi's suggestion. I don't even think it needs to be a menu option. Just add something like "TabAccessibility = True" to the options.txt but don't have it appear in any of the ingame menus. So players who want to disable the Tab accessibility functionality have to make the conscious decision to disable it. Thus it will be impossible to accidentally turn it off, making it pass the guidelines Maria mentioned in the moderator notice.

And the second thing, for those annoyed with this issue, it appears a beautiful someone has made a mod to fix it (for 1.14.X). Interestingly this mod was posted yesterday. As far as I can tell it works. Here is a link: https://www.curseforge.com/minecraft/mc-mods/tab-inventory

So I've combined Fozi's and Ian's idea into a mod that is able to run on the latest Snapshot version.
Since modifying files like options.txt is really hard for an average user, I decided to use Fozi's idea and created a warning screen that shows up as soon as the player to tries to bind tab.

So in a way you can see this as an possible proposal on how to resolve this issue. 

https://github.com/0blu/TabInventory-Fabric

 

[media]

Just wanted to also say that you also cannot close the inventory with any of the mouse buttons, not even extra buttons (Button 4, Button 5, ect.) I don't know if this is its own issue or part of this one, but it kinda makes a no-keyboard run of Minecraft impossible haha.

@Nutty171 I think it would be wise to make a new ticket for this

Jack McKalling

Confirmed fixed in 20w27a

Someone

mgatland

Confirmed

Low

Accessibility

binding, inventory, tab

Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, ..., 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1

20w27a

Retrieved