When active, instead of depending on mining the chests to packing then, use a custom input to do it!
If the user click in a chest with the Right-Button, simply let the player mine the chest like vanilla. But if the user input Alt + Right-Click on some chest, then the user could pack the entire chest.
Thanks.