summaryrefslogtreecommitdiffstats
path: root/widget/src/vertical_slider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/vertical_slider.rs')
-rw-r--r--widget/src/vertical_slider.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs
index 6f878fde..436c2345 100644
--- a/widget/src/vertical_slider.rs
+++ b/widget/src/vertical_slider.rs
@@ -31,7 +31,7 @@
use std::ops::RangeInclusive;
pub use crate::slider::{
- default, Catalog, Handle, HandleShape, Status, Style, StyleFn,
+ Catalog, Handle, HandleShape, Status, Style, StyleFn, default,
};
use crate::core::border::Border;
@@ -393,9 +393,7 @@ where
shell.capture_event();
}
}
- Event::Keyboard(keyboard::Event::KeyPressed {
- ref key, ..
- }) => {
+ Event::Keyboard(keyboard::Event::KeyPressed { key, .. }) => {
if cursor.is_over(layout.bounds()) {
match key {
Key::Named(key::Named::ArrowUp) => {