diff --git a/druid/src/lib.rs b/druid/src/lib.rs index 7bcbc3a68f..9e1bbfaa86 100644 --- a/druid/src/lib.rs +++ b/druid/src/lib.rs @@ -127,7 +127,7 @@ mod menu; mod mouse; #[cfg(test)] mod tests; -mod text; +pub mod text; pub mod theme; pub mod widget; mod win_handler; diff --git a/druid/src/text/text_input.rs b/druid/src/text/text_input.rs index 33325327ac..7e02d97914 100644 --- a/druid/src/text/text_input.rs +++ b/druid/src/text/text_input.rs @@ -53,6 +53,7 @@ pub trait TextInput { /// Handles key events and returns actions that are applicable to /// single line textboxes +#[derive(Default)] pub struct BasicTextInput {} impl BasicTextInput {