From 48bad5513fbf6c508a69a646072c47ebeb62c9f6 Mon Sep 17 00:00:00 2001 From: Colin Rofls Date: Wed, 8 Apr 2020 11:03:14 -0400 Subject: [PATCH] Make the text module public closes #776 --- druid/src/lib.rs | 2 +- druid/src/text/text_input.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 {