Hopefully; said while touching something wooden, to avert superstitious bad luck from what has just been said.
To make contact with wood to avert bad luck, in accordance with a folk practice.