The mod will take items from the player inventory first, and if there is not enough it will take the remaining from chests.
There is a toggle key (disabled by default) that you can set to require holding down for use.
Using the mod for either crafting or building can be turned off in the config.
Notes:
For compatibility, the mod limits its use to within CarpenterMenu and CraftingPage classes.
Config
You can customize this mod by editing the config file or using Generic Mod Config Menu.
Technical
Requires SMAPI.
Implements a Generic Mod Config Menu interface to change config settings in-game.
Compatible with Mod Updater for automatic updates.
Code is at https://github.com/aedenthorn/StardewValleyMods.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.
A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.