detecting player moving item from their inventory into a chest

So I currently have a function that prevents someone from dropping an item. But what I was wondering if there's a way to detect when someone moves an item out of their inventory into another inventory like a chest, container, etc.

Continue to help post