Pretty sure this hasn't been addressed yet for 1.18+; so making a Github issue for it;
Middle click
Middle click (mousewheel) on ANY inventory slot
Important: Middle-Click does not work in MC 1.18+ because of client changes. There won't be any errors, middle-click will simply not be detected. I will change this to a different hotkey soon for 1.18+ users.