# Is there a way to prevent a Ps event?

**URL:** https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-prevent-a-ps-event/3948
**Category:** UXP Plugin API
**Tags:** feature-request, events, uxp, javascript
**Created:** [November 28, 2021, 8:08pm UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-prevent-a-ps-event/3948 "2021-11-28T20:08:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)
#### Post date: [November 28, 2021, 8:08pm UTC](https://forums.creativeclouddeveloper.com/t/is-there-a-way-to-prevent-a-ps-event/3948/1 "2021-11-28T20:08:40Z")

</div>

Basically what I want, is to prevent some event from happening. Eg. user chooses a tool - I want to know which tool user tried to choose, but actually stop from activating it. Or if user clicks on some menu item, I want to know which item user clicked, but prevent execution of that click. User tries to run an action - catch it and prevent… Etc.

I doubt it’s possible with current API, but maybe? Or it could be considered as a feature request
