Adjust scroll when using arrow keys
This commit is contained in:
parent
08a7f6faed
commit
501e4f48eb
3 changed files with 69 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ use cosmic::{
|
|||
futures::{self, SinkExt},
|
||||
keyboard::{Event as KeyEvent, Key, Modifiers},
|
||||
subscription::{self, Subscription},
|
||||
widget::scrollable,
|
||||
window, Alignment, Event, Length,
|
||||
},
|
||||
style, theme,
|
||||
|
|
@ -1065,6 +1066,9 @@ impl Application for App {
|
|||
}
|
||||
}
|
||||
}
|
||||
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