# GH text panel loses focus

**URL:** <https://discourse.mcneel.com/t/gh-text-panel-loses-focus/221386>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [August 1, 2026, 4:52pm UTC](https://discourse.mcneel.com/t/gh-text-panel-loses-focus/221386 "2026-08-01T16:52:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [August 1, 2026, 8:54pm UTC](https://discourse.mcneel.com/t/gh-text-panel-loses-focus/221386/2 "2026-08-01T20:54:35Z")

</div>

That is going to be a tough one unless we can figure out the steps to repeat.

It’s the panel capturing the mouse event, like David describes here..

> [@Why I cannot move a custom component?](https://discourse.mcneel.com/t/why-i-cannot-move-a-custom-component/72959/5):
>
> @Dani_Abalde’s advice is probably what you need. Let me elaborate on the GH\_ObjectResponse enum meanings. If you return Ignore, then the event (be it mousemove, mouseup, mousedoubleclick, whatever) will be passed on to the next object. If all objects ignore the event, then the canvas may choose to handle it. In the case of mouse-down, it may start a Drag interaction or a Window select, depending on where and what. If you return Handled, it means you did something and since each UI event should…

Any interaction that lands a clean MouseUp on the capturing object should clear it (dragging the scrollbar)

---

_[View the full topic](https://discourse.mcneel.com/t/gh-text-panel-loses-focus/221386)._
