# Events

Reference documentation for Textual's built-in events. See the [Events guide](../guide/events.md) for an introduction to the event system.

## Contents

| Page                                      | Description                                |
|-------------------------------------------|--------------------------------------------|
| [AppBlur](app_blur.md)                    | Sent when the application loses focus      |
| [AppFocus](app_focus.md)                  | Sent when the application gains focus      |
| [Blur](blur.md)                           | Sent when a widget loses focus             |
| [Click](click.md)                         | Sent when a widget is clicked              |
| [DescendantBlur](descendant_blur.md)      | Sent when a descendant widget loses focus  |
| [DescendantFocus](descendant_focus.md)    | Sent when a descendant widget gains focus  |
| [Enter](enter.md)                         | Sent when the mouse enters a widget        |
| [Focus](focus.md)                         | Sent when a widget gains focus             |
| [Hide](hide.md)                           | Sent when a widget is hidden               |
| [Key](key.md)                             | Sent when a key is pressed                 |
| [Leave](leave.md)                         | Sent when the mouse leaves a widget        |
| [Load](load.md)                           | Sent when the application is loading       |
| [Mount](mount.md)                         | Sent when a widget is mounted to the DOM   |
| [MouseCapture](mouse_capture.md)          | Sent when a widget captures the mouse      |
| [MouseDown](mouse_down.md)                | Sent when a mouse button is pressed        |
| [MouseMove](mouse_move.md)                | Sent when the mouse moves over a widget    |
| [MouseRelease](mouse_release.md)          | Sent when a widget releases the mouse      |
| [MouseScrollDown](mouse_scroll_down.md)   | Sent when the mouse scrolls down           |
| [MouseScrollLeft](mouse_scroll_left.md)   | Sent when the mouse scrolls left           |
| [MouseScrollRight](mouse_scroll_right.md) | Sent when the mouse scrolls right          |
| [MouseScrollUp](mouse_scroll_up.md)       | Sent when the mouse scrolls up             |
| [MouseUp](mouse_up.md)                    | Sent when a mouse button is released       |
| [Paste](paste.md)                         | Sent when text is pasted into the terminal |
| [Print](print.md)                         | Sent when the app receives a print request |
| [Resize](resize.md)                       | Sent when a widget is resized              |
| [ScreenResume](screen_resume.md)          | Sent when a screen is resumed              |
| [ScreenSuspend](screen_suspend.md)        | Sent when a screen is suspended            |
| [Show](show.md)                           | Sent when a widget becomes visible         |
| [Unmount](unmount.md)                     | Sent when a widget is removed from the DOM |
