summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/keyboard.rs6
-rw-r--r--src/lib.rs1
-rw-r--r--src/widget.rs5
3 files changed, 10 insertions, 2 deletions
diff --git a/src/keyboard.rs b/src/keyboard.rs
new file mode 100644
index 00000000..181dd974
--- /dev/null
+++ b/src/keyboard.rs
@@ -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};
diff --git a/src/lib.rs b/src/lib.rs
index d492db02..aeec24c2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -183,6 +183,7 @@ mod element;
mod sandbox;
pub mod executor;
+pub mod keyboard;
pub mod settings;
pub mod widget;
pub mod window;
diff --git a/src/widget.rs b/src/widget.rs
index 7d3a1cef..91ea1ed4 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -35,8 +35,9 @@ mod platform {
#[doc(no_inline)]
pub use {
button::Button, checkbox::Checkbox, container::Container, image::Image,
- progress_bar::ProgressBar, radio::Radio, scrollable::Scrollable,
- slider::Slider, svg::Svg, text_input::TextInput,
+ pane_grid::PaneGrid, progress_bar::ProgressBar, radio::Radio,
+ scrollable::Scrollable, slider::Slider, svg::Svg,
+ text_input::TextInput,
};
/// A container that distributes its contents vertically.