diff options
author | 2020-11-10 21:18:21 +0100 | |
---|---|---|
committer | 2020-11-10 21:18:21 +0100 | |
commit | 86fa12229e7117306b8297a09aa22c99802600c8 (patch) | |
tree | 65995b4304543ea6a6400af3c8e11eae630dd22b /examples | |
parent | 3b2ed0d6f02ecacafd19a8cba7a5e54a54b163a0 (diff) | |
download | iced-86fa12229e7117306b8297a09aa22c99802600c8.tar.gz iced-86fa12229e7117306b8297a09aa22c99802600c8.tar.bz2 iced-86fa12229e7117306b8297a09aa22c99802600c8.zip |
Introduce `is_command_pressed` to `ModifiersState`
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pane_grid/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pane_grid/src/main.rs b/examples/pane_grid/src/main.rs index d149f9c6..e786eadd 100644 --- a/examples/pane_grid/src/main.rs +++ b/examples/pane_grid/src/main.rs @@ -123,7 +123,7 @@ impl Application for Example { Event::Keyboard(keyboard::Event::KeyPressed { modifiers, key_code, - }) if modifiers.control => handle_hotkey(key_code), + }) if modifiers.is_command_pressed() => handle_hotkey(key_code), _ => None, }) } |