summaryrefslogtreecommitdiffstats
path: root/examples/pane_grid
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-07-12 22:01:57 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-07-12 22:01:57 +0200
commitb57d567981bb7ef5f9ff397c210778f211d2de5b (patch)
tree4b90afbc76cee8df6e3196883d2c55e5691aaf62 /examples/pane_grid
parent735cfb790813c44852612400e31c0190b9c641a6 (diff)
downloadiced-b57d567981bb7ef5f9ff397c210778f211d2de5b.tar.gz
iced-b57d567981bb7ef5f9ff397c210778f211d2de5b.tar.bz2
iced-b57d567981bb7ef5f9ff397c210778f211d2de5b.zip
Use `bitflags` for `keyboard::Modifiers`
Diffstat (limited to 'examples/pane_grid')
-rw-r--r--examples/pane_grid/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pane_grid/src/main.rs b/examples/pane_grid/src/main.rs
index 81cf1770..3bd8aa25 100644
--- a/examples/pane_grid/src/main.rs
+++ b/examples/pane_grid/src/main.rs
@@ -146,7 +146,7 @@ impl Application for Example {
Event::Keyboard(keyboard::Event::KeyPressed {
modifiers,
key_code,
- }) if modifiers.is_command_pressed() => handle_hotkey(key_code),
+ }) if modifiers.command() => handle_hotkey(key_code),
_ => None,
}
})