Skip to content

Commit e9d7d56

Browse files
committed
enhance: steal focus after popup showing
Signed-off-by: leo <longshuang@msn.cn>
1 parent 25c638a commit e9d7d56

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Views/PopupDataTemplates.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public Control Build(object param)
3535
return;
3636
}
3737
}
38+
39+
// Although this control may not be focusable, we only want to change the window's previous focus after the call.
40+
ctl.Focus(NavigationMethod.Directional);
3841
};
3942

4043
return control;

0 commit comments

Comments
 (0)