diff --git a/core/src/keyboard.rs b/core/src/keyboard.rs index d98b2989..b26bdb3d 100644 --- a/core/src/keyboard.rs +++ b/core/src/keyboard.rs @@ -1,6 +1,8 @@ //! Reuse basic keyboard types. +mod event; mod key_code; mod modifiers_state; +pub use event::Event; pub use key_code::KeyCode; pub use modifiers_state::ModifiersState; diff --git a/native/src/input/keyboard/event.rs b/core/src/keyboard/event.rs similarity index 100% rename from native/src/input/keyboard/event.rs rename to core/src/keyboard/event.rs diff --git a/native/src/input/keyboard.rs b/native/src/input/keyboard.rs index 220b7f17..012538e3 100644 --- a/native/src/input/keyboard.rs +++ b/native/src/input/keyboard.rs @@ -1,5 +1,2 @@ -//! Build keyboard events. -mod event; - -pub use event::Event; +//! Track keyboard events. pub use iced_core::keyboard::*; diff --git a/native/src/input/mouse.rs b/native/src/input/mouse.rs index ae3f1596..9ee406cf 100644 --- a/native/src/input/mouse.rs +++ b/native/src/input/mouse.rs @@ -1,4 +1,4 @@ -//! Build mouse events. +//! Track mouse events. pub mod click;