gpui-actions
Installation
SKILL.md
GPUI Actions
This skill covers actions, events, and user interaction handling in GPUI.
Overview
GPUI actions provide:
- Type-safe event handling with the Action trait
- Keyboard shortcut binding with action dispatch
- Mouse/touch events with
.on_click(),.on_mouse_down(), etc. - Focus management for keyboard navigation
Defining Actions
Simple Actions
Use the actions! macro for actions with no data: