input: dispatch editing keys through actions

This commit is contained in:
2026-10-29 15:27:56 +07:00
parent e2331f2ba5
commit 5f53e0c89f
6 changed files with 656 additions and 184 deletions
+11
View File
@@ -1,4 +1,8 @@
//! The components every application needs, one cargo feature each.
//!
//! Call [`init`] once at startup, before opening windows.
use gpui::App;
pub mod common;
@@ -31,3 +35,10 @@ pub mod avatar;
#[cfg(feature = "input")]
pub mod input;
/// Initializes everything the components need at startup.
pub fn init(cx: &mut App) {
gpui_native_theme::Theme::init(cx);
#[cfg(feature = "input")]
input::bind_input_keys(cx, None);
}