Lost focus after open for edit two or more file on FTP

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
TJL73
Junior Member
Junior Member
Posts: 4
Joined: 2024-11-20, 09:33 UTC
Location: Italy
Contact:

Lost focus after open for edit two or more file on FTP

Post by *TJL73 »

Scenario:
- Open an FTP connection
- Open a file in edit mode (F4)
- Go back to TC (e.g. Alt+Tab)
- Open a second file in edit mode (F4)
- Go back to TC (e.g. Alt+Tab)
The small window that opens has no focus and does not allow you to choose the desired option via the keyboard, not even by pressing F2.
The only way to interact with TC is the mouse, to close the small window, make a choice or give it the focus.

My default text editor (by F4) is Notepad++
The problem occurs with any version of TC, even the latest v11.51rc1

Thanks in advance.
Shalom-Salām,
TJL73
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lost focus after open for edit two or more file on FTP

Post by *ghisler(Author) »

Confirmed. It only happens when the editor jumps to the foreground on the second F4 (which my editor pfe doesn't, but notepad++ does). Then the close confirmation dialog is created while TC isn't in the foreground, which seems to confuse Windows. Explicitly calling SetActiveWindow when re-gaining focus seems to fix it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lost focus after open for edit two or more file on FTP

Post by *ghisler(Author) »

This should be fixed in RC2, please test it!
21.01.25 Fixed: Open multiple files with F4 in multiple document editor: Focus wasn't set on "Confirm close" dialog when returning to Total Commander (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
TJL73
Junior Member
Junior Member
Posts: 4
Joined: 2024-11-20, 09:33 UTC
Location: Italy
Contact:

Re: Lost focus after open for edit two or more file on FTP

Post by *TJL73 »

This should be fixed in RC2, please test it!
It works like a charm, now!   👏🏻

Many thanks.
Shalom-Salām,
TJL73
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lost focus after open for edit two or more file on FTP

Post by *ghisler(Author) »

Great, thanks for testing it!

Moderator message from: ghisler(Author) » 2025-01-23, 07:55 UTC

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply