# Vision - mousePressed Event on (Inherited) Template

**URL:** <https://forum.inductiveautomation.com/t/vision-mousepressed-event-on-inherited-template/65683>\
**Category:** Ignition\
**Tags:** ignition80, vision\
**Created:** [October 25, 2022, 9:48pm UTC](https://forum.inductiveautomation.com/t/vision-mousepressed-event-on-inherited-template/65683 "2022-10-25T21:48:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 26, 2022, 7:33pm UTC](https://forum.inductiveautomation.com/t/vision-mousepressed-event-on-inherited-template/65683/5 "2022-10-26T19:33:11Z")

</div>

You can, the template is consuming the mouse actions though. You need to pass them through to the sub components. Let me find the script...

> [@Template Event Handlers - Events in template and template instance](https://forum.inductiveautomation.com/t/template-event-handlers-events-in-template-and-template-instance/20831/2):
>
> In the mouseClicked event of the template you can dispatch the mouse event to the templates parent. from java.awt.event import MouseEvent evt = MouseEvent( event.source.parent ,event.getID() ,event.getWhen() ,event.getModifiers() ,event.x ,event.y ,event.clickCount ,event.popupTrigger ,event.button) event.source.parent.dispatchEvent(evt)

---

_[View the full topic](https://forum.inductiveautomation.com/t/vision-mousepressed-event-on-inherited-template/65683)._
