gpui_deck/actions.rs
1//! Common actions shared by keyboard-driven GPUI controls.
2
3use gpui::{Action, actions};
4use serde::Deserialize;
5
6#[derive(Clone, Action, PartialEq, Eq, Deserialize)]
7#[action(namespace = ui, no_json)]
8pub struct Confirm {
9 /// Whether the confirmation uses the secondary action.
10 pub secondary: bool,
11}
12
13actions!(
14 ui,
15 [
16 Cancel,
17 SelectUp,
18 SelectDown,
19 SelectLeft,
20 SelectRight,
21 SelectFirst,
22 SelectLast,
23 SelectPrevColumn,
24 SelectNextColumn,
25 SelectPageUp,
26 SelectPageDown
27 ]
28);