diff options
author | 2021-09-15 15:50:25 +0700 | |
---|---|---|
committer | 2021-09-15 15:50:25 +0700 | |
commit | 099981cfc2f61a1f37e84100592d65babb94fb82 (patch) | |
tree | 1b063e251d92f8bc63f0f27a20e78d178f6bd532 /core/src/keyboard | |
parent | 5870cbb312ec5de1219b6983e09e460419d95912 (diff) | |
parent | c0ab9888426b7d1f2606afafc9dba06eed7f9419 (diff) | |
download | iced-099981cfc2f61a1f37e84100592d65babb94fb82.tar.gz iced-099981cfc2f61a1f37e84100592d65babb94fb82.tar.bz2 iced-099981cfc2f61a1f37e84100592d65babb94fb82.zip |
Merge pull request #1047 from iced-rs/revert-menus
Revert system menus support
Diffstat (limited to 'core/src/keyboard')
-rw-r--r-- | core/src/keyboard/hotkey.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/core/src/keyboard/hotkey.rs b/core/src/keyboard/hotkey.rs deleted file mode 100644 index 310ef286..00000000 --- a/core/src/keyboard/hotkey.rs +++ /dev/null @@ -1,18 +0,0 @@ -use crate::keyboard::{KeyCode, Modifiers}; - -/// Representation of a hotkey, consists on the combination of a [`KeyCode`] and [`Modifiers`]. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub struct Hotkey { - /// The key that represents this hotkey. - pub key: KeyCode, - - /// The list of modifiers that represents this hotkey. - pub modifiers: Modifiers, -} - -impl Hotkey { - /// Creates a new [`Hotkey`] with the given [`Modifiers`] and [`KeyCode`]. - pub fn new(modifiers: Modifiers, key: KeyCode) -> Self { - Self { modifiers, key } - } -} |