added support to press event.