summaryrefslogtreecommitdiffstats
path: root/core/src/keyboard
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-09-15 15:31:40 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-09-15 15:31:40 +0700
commitc0ab9888426b7d1f2606afafc9dba06eed7f9419 (patch)
tree909d04f52e5b2bb51a5784b855a77b45d4a53592 /core/src/keyboard
parent93fec8d273ef8305e1c2456abe0c8ecd7a9d9407 (diff)
downloadiced-c0ab9888426b7d1f2606afafc9dba06eed7f9419.tar.gz
iced-c0ab9888426b7d1f2606afafc9dba06eed7f9419.tar.bz2
iced-c0ab9888426b7d1f2606afafc9dba06eed7f9419.zip
Revert system menus support
The current implementation has some important issues on Windows. We will reintroduce the feature once we figure them out! I have kept some of the changes in #945, like the new `keyboard::Modifiers` powered by `bitflags`.
Diffstat (limited to 'core/src/keyboard')
-rw-r--r--core/src/keyboard/hotkey.rs18
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 }
- }
-}