tree: focus container mono child after scroll
This commit is contained in:
parent
3abd72b330
commit
fca7c7e1d2
9 changed files with 140 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ use {
|
|||
},
|
||||
input::{InputDevice, Seat},
|
||||
keyboard::{keymap::Keymap, ModifiedKeySym},
|
||||
Direction,
|
||||
Axis, Direction,
|
||||
},
|
||||
std::{cell::Cell, ops::Deref, ptr, rc::Rc},
|
||||
};
|
||||
|
|
@ -191,6 +191,20 @@ impl TestConfig {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn create_split(&self, seat: SeatId, axis: Axis) -> TestResult {
|
||||
self.send(ClientMessage::CreateSplit {
|
||||
seat: Seat(seat.raw() as _),
|
||||
axis,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn set_mono(&self, seat: SeatId, mono: bool) -> TestResult {
|
||||
self.send(ClientMessage::SetMono {
|
||||
seat: Seat(seat.raw() as _),
|
||||
mono,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn add_shortcut<T: Into<ModifiedKeySym>>(
|
||||
&self,
|
||||
seat: SeatId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue