feat: add combobox component
This commit is contained in:
@@ -75,6 +75,9 @@ pub mod field;
|
||||
#[cfg(feature = "status_dot")]
|
||||
pub mod status_dot;
|
||||
|
||||
#[cfg(feature = "combobox")]
|
||||
pub mod combobox;
|
||||
|
||||
#[cfg(feature = "toast")]
|
||||
pub mod toast;
|
||||
|
||||
@@ -86,4 +89,8 @@ pub fn init(cx: &mut App) {
|
||||
gpui_native_theme::Theme::init(cx);
|
||||
#[cfg(feature = "input")]
|
||||
input::bind_input_keys(cx, None);
|
||||
// Load-bearing order: the combobox's bindings must win the depth tie
|
||||
// with the input's, and gpui breaks ties by later registration.
|
||||
#[cfg(feature = "combobox")]
|
||||
combobox::bind_combobox_keys(cx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user