Move common keyboard types to iced_core

Also expose them in `iced` through `iced_native` and `iced_web`.
This commit is contained in:
Héctor Ramón Jiménez 2020-03-17 07:28:28 +01:00
parent 1cd1582506
commit 05beb87852
10 changed files with 20 additions and 10 deletions

6
src/keyboard.rs Normal file
View file

@ -0,0 +1,6 @@
//! Listen and react to keyboard events.
#[cfg(not(target_arch = "wasm32"))]
pub use iced_winit::input::keyboard::{KeyCode, ModifiersState};
#[cfg(target_arch = "wasm32")]
pub use iced_web::keyboard::{KeyCode, ModifiersState};

View file

@ -183,6 +183,7 @@ mod element;
mod sandbox;
pub mod executor;
pub mod keyboard;
pub mod settings;
pub mod widget;
pub mod window;