mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Active component after blur
This commit is contained in:
@@ -160,6 +160,10 @@ impl View {
|
|||||||
// Set focus to last element
|
// Set focus to last element
|
||||||
new = Some(last.clone());
|
new = Some(last.clone());
|
||||||
self.focus = Some(last.clone());
|
self.focus = Some(last.clone());
|
||||||
|
// Active
|
||||||
|
if let Some(new) = self.components.get_mut(last) {
|
||||||
|
new.active();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Pop element from stack
|
// Pop element from stack
|
||||||
if let Some(new) = new {
|
if let Some(new) = new {
|
||||||
|
|||||||
Reference in New Issue
Block a user