Quoting http://minecraft.gamepedia.com/Controls :
When crafting, Shift + clicking the crafted item automatically crafts the maximum number of that item for the materials being used, and moves all crafted items to the inventory.
This behaviour works on the PC version of 1.8.1 however, when attempted on an iMac with a trackpad, it didn't work (you have to drag the crafted items to the inventory).
Make sure that your game is not on touchscreen mode.