Added a touch mode changed listener.