Add PaneGrid::on_key_press for hotkey logic
This commit is contained in:
parent
56ba6215a2
commit
a280dcda23
2 changed files with 52 additions and 3 deletions
|
|
@ -186,6 +186,13 @@ impl Internal {
|
|||
self.action
|
||||
}
|
||||
|
||||
pub fn idle_pane(&self) -> Option<Pane> {
|
||||
match self.action {
|
||||
Action::Idle { focus } => focus,
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn picked_pane(&self) -> Option<Pane> {
|
||||
match self.action {
|
||||
Action::Dragging { pane } => Some(pane),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue