I'm using a French Keyboard (azerty). On an Azerty layout, we have to press shift and the key to type the numbers. That's annoying so I changed the keybinding in the control settings to fit my keyboard.
It's working great in-game but when you want to use those shortcuts in the inventory, only the 4( ' ), 6( - ) and 8( _ ) are working.
This bug is probably related to
MC-30704. I supposed they thought they fixed it but their fix doesn't work in the inventory