Adjust scroll when using arrow keys
This commit is contained in:
parent
08a7f6faed
commit
501e4f48eb
3 changed files with 69 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ use cosmic::{
|
|||
keyboard::{Event as KeyEvent, Modifiers},
|
||||
multi_window::Application as IcedApplication,
|
||||
subscription::{self, Subscription},
|
||||
widget::scrollable,
|
||||
window, Event, Length, Size,
|
||||
},
|
||||
theme,
|
||||
|
|
@ -592,6 +593,9 @@ impl Application for App {
|
|||
commands.push(self.update(Message::Open));
|
||||
}
|
||||
}
|
||||
tab::Command::Scroll(id, offset) => {
|
||||
commands.push(scrollable::scroll_to(id, offset));
|
||||
}
|
||||
}
|
||||
}
|
||||
return Command::batch(commands);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue