I use an AHK script for that. It’s not completely reliable, it often fails because AHK literally tells the cursor to move the cursor to the item position in the inventory, double click it and move the cursor back to where it was. That takes some time, so if you you move the mouse even a tiny bit during that process, it might not work.
But as a reminder, AHK is technically against the ToS, but it probably won’t get you banned.