We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4ee4b commit 8fca87eCopy full SHA for 8fca87e
src/textual/app.py
@@ -2921,8 +2921,11 @@ async def check_mouse() -> None:
2921
def capture_mouse(self, widget: Widget | None) -> None:
2922
"""Send all mouse events to the given widget or disable mouse capture.
2923
2924
+ Normally mouse events are sent to the widget directly under the pointer.
2925
+ Capturing the mouse allows a widget to receive mouse events even when the pointer is over another widget.
2926
+
2927
Args:
- widget: If a widget, capture mouse event, or `None` to end mouse capture.
2928
+ widget: Widget to capture mouse events, or `None` to end mouse capture.
2929
"""
2930
if widget == self.mouse_captured:
2931
return
0 commit comments