# Disable mouse input when over widget

**URL:** <https://forums.unrealengine.com/t/disable-mouse-input-when-over-widget/490719>\
**Category:** UI\
**Tags:** Input, unreal-engine, Widget, question\
**Created:** [November 8, 2021, 3:30pm UTC](https://forums.unrealengine.com/t/disable-mouse-input-when-over-widget/490719 "2021-11-08T15:30:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 8, 2021, 7:07pm UTC](https://forums.unrealengine.com/t/disable-mouse-input-when-over-widget/490719/2 "2021-11-08T19:07:32Z")

</div>

In the widget, override `onMouseDown`, check if it’s RMB and then pass _Handled_. This way the widgets will consume RMB input and the PC will be unable to detect it.

---

_[View the full topic](https://forums.unrealengine.com/t/disable-mouse-input-when-over-widget/490719)._
