# Struct `kurogane::Modifiers`

```rust
pub struct Modifiers(/* private field */);
```

The modifier keys held with a key.

## Methods

### `shift`

```rust
pub fn shift(self) -> bool
```

### `ctrl`

```rust
pub fn ctrl(self) -> bool
```

### `alt`

```rust
pub fn alt(self) -> bool
```

Alt, Option on macOS.

### `meta`

```rust
pub fn meta(self) -> bool
```

Cmd on macOS, the Windows key elsewhere.

### `primary`

```rust
pub fn primary(self) -> bool
```

Returns whether the modifier of the platform's shortcuts is held (Cmd
on macOS, Ctrl elsewhere). Ctrl+W on Windows and Linux and Cmd+W on
macOS both have it.

### `none`

```rust
pub fn none(self) -> bool
```

Whether no modifier is held (Shift included).

## Trait implementations

- `impl Clone for Modifiers`
- `impl Copy for Modifiers`
- `impl Debug for Modifiers`
- `impl Default for Modifiers`
- `impl Eq for Modifiers`
- `impl PartialEq for Modifiers`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/keys.rs#L173
