Right clicking onto the empty place in the main Ui hotbar opens inventory?

Right click to attack something after you drew out the weapon by left clicking on the icon and have it ready?