Wait https://github.com/zed-industries/zed/pull/33008, https://github.com/zed-industries/zed/pull/34804 to merge. https://github.com/user-attachments/assets/3c21ebc9-44a0-4311-bb0f-5f63fe8d4bb3 - Improved `focus_ring` to render like an outline. - Added to support press `Enter`, `Space` key to trigger Checkbox, Button, Radio. ## Break Changes - The `FocusableExt` has been changed to only for crate internal. - The `FocusableCycle` has been removed, now GPUI has it own tab stop implementation.
14 lines
311 B
Rust
14 lines
311 B
Rust
use gpui::{actions, Action};
|
|
use serde::Deserialize;
|
|
|
|
#[derive(Clone, Action, PartialEq, Eq, Deserialize)]
|
|
#[action(namespace = ui, no_json)]
|
|
pub struct Confirm {
|
|
/// Is confirm with secondary.
|
|
pub secondary: bool,
|
|
}
|
|
|
|
actions!(
|
|
list,
|
|
[Cancel, SelectPrev, SelectNext, SelectLeft, SelectRight]
|
|
);
|