Impact tool with a percussion mechanism whose impact wrench mode can be selectively enabled or disabled