Import of r39596 from trunk. Merge r39595 from cling: Reset the modifier before reading new input. Fixes problem in cling where backspace would disable further input.
Changed paths: