Move common keyboard types to iced_core
Also expose them in `iced` through `iced_native` and `iced_web`.
This commit is contained in:
parent
1cd1582506
commit
05beb87852
10 changed files with 20 additions and 10 deletions
|
|
@ -1,15 +0,0 @@
|
|||
/// The current state of the keyboard modifiers.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Default)]
|
||||
pub struct ModifiersState {
|
||||
/// Whether a shift key is pressed
|
||||
pub shift: bool,
|
||||
|
||||
/// Whether a control key is pressed
|
||||
pub control: bool,
|
||||
|
||||
/// Whether an alt key is pressed
|
||||
pub alt: bool,
|
||||
|
||||
/// Whether a logo key is pressed (e.g. windows key, command key...)
|
||||
pub logo: bool,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue