Move common keyboard types to iced_core
Also expose them in `iced` through `iced_native` and `iced_web`.
This commit is contained in:
parent
1cd1582506
commit
05beb87852
10 changed files with 20 additions and 10 deletions
6
src/keyboard.rs
Normal file
6
src/keyboard.rs
Normal 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};
|
||||
|
|
@ -183,6 +183,7 @@ mod element;
|
|||
mod sandbox;
|
||||
|
||||
pub mod executor;
|
||||
pub mod keyboard;
|
||||
pub mod settings;
|
||||
pub mod widget;
|
||||
pub mod window;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue