summaryrefslogtreecommitdiffstats
path: root/futures/src/keyboard.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-09-07 02:46:19 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-09-07 02:58:43 +0200
commitd21f0698b505d699c44e9414f902dbeca9474e39 (patch)
treecf7f002d1ac7e2a8c036f1d420238d69ab45407b /futures/src/keyboard.rs
parent08a031cbe5913c249efa7fc82556d5d95f981c4c (diff)
downloadiced-d21f0698b505d699c44e9414f902dbeca9474e39.tar.gz
iced-d21f0698b505d699c44e9414f902dbeca9474e39.tar.bz2
iced-d21f0698b505d699c44e9414f902dbeca9474e39.zip
Add hotkey support for `stopwatch` example
Diffstat (limited to '')
-rw-r--r--futures/src/keyboard.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/futures/src/keyboard.rs b/futures/src/keyboard.rs
index 1ddca0bb..af68e1f2 100644
--- a/futures/src/keyboard.rs
+++ b/futures/src/keyboard.rs
@@ -44,9 +44,9 @@ where
Message: MaybeSend + 'static,
{
#[derive(Hash)]
- struct OnKeyPress;
+ struct OnKeyRelease;
- subscription::filter_map((OnKeyPress, f), move |event, status| {
+ subscription::filter_map((OnKeyRelease, f), move |event, status| {
match (event, status) {
(
core::Event::Keyboard(Event::KeyReleased {