mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Cannot focus a disabled or invisible window
(cherry picked from commit 90222158e1)
This commit is contained in:
parent
caee75995c
commit
117d8bbf75
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ begin
|
|||
FViewer.Show;
|
||||
end;
|
||||
// Viewer can steal focus, so restore it
|
||||
if Assigned(FLastFocusedControl) then
|
||||
if Assigned(FLastFocusedControl) and FLastFocusedControl.CanSetFocus then
|
||||
FLastFocusedControl.SetFocus
|
||||
else if not FFileView.Focused then
|
||||
FFileView.SetFocus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue