diff options
author | 2024-12-03 22:03:06 +0100 | |
---|---|---|
committer | 2024-12-10 04:51:08 +0100 | |
commit | d09d5d45ae4697eef277dfe30756b91c7d802a94 (patch) | |
tree | ce1852b218aa46f5400cee383ccfb68faa61abaf /core/src/keyboard | |
parent | d6182299b9db7a1928b7740736d53196e33d66e3 (diff) | |
download | iced-d09d5d45ae4697eef277dfe30756b91c7d802a94.tar.gz iced-d09d5d45ae4697eef277dfe30756b91c7d802a94.tar.bz2 iced-d09d5d45ae4697eef277dfe30756b91c7d802a94.zip |
Draft `iced_test` crate and test `todos` example
Diffstat (limited to 'core/src/keyboard')
-rw-r--r-- | core/src/keyboard/key.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/keyboard/key.rs b/core/src/keyboard/key.rs index 69a91902..47169d9a 100644 --- a/core/src/keyboard/key.rs +++ b/core/src/keyboard/key.rs @@ -32,6 +32,12 @@ impl Key { } } +impl From<Named> for Key { + fn from(named: Named) -> Self { + Self::Named(named) + } +} + /// A named key. /// /// This is mostly the `NamedKey` type found in [`winit`]. |