-[850b15 64] Behavior of ESC key in file search hitlist

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
kleena
Junior Member
Junior Member
Posts: 10
Joined: 2014-01-09, 14:18 UTC
Location: Germany

-[850b15 64] Behavior of ESC key in file search hitlist

Post by *kleena »

Under the following circumstances:
- Alt-F7 file search has been performed
- in the hits list, a file has been opened in internal viewer using F3
- further text search has been performed in the viewer, resulting in a modal "no more hits" window
- modal window not closed, just clicked back to the hits list with the mouse
- pressing ESC there

The following happens:
- no window gets closed
- the currently highlighted hit disappears, which can be repeated: click on hit, ESC, GONE - empty row, click next hit, ESC, empty row...
- when the search hits window loses its focus, ALL the hits disappear:
HaTeTePe__w-w-w-.vergangen.de/permatemp/tcmdreport/2014-01-09_161503.png
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a well-known problem to which there is no solution (except for using a standalone viewer). Why? MessageBox is a program-modal dialog with its own message queue.

Sorry, no solution.
Author of Total Commander
https://www.ghisler.com
kleena
Junior Member
Junior Member
Posts: 10
Joined: 2014-01-09, 14:18 UTC
Location: Germany

Post by *kleena »

Thank you for your reply.
I would understand the modal dialog, but why do the hits in the search hits window disappear after Esc?
You press Esc, nothing happens. You move to another hit, the previous hit disappears and leaves an empty row. You switch the focus to another window and all the hits are gone (only the introduction line "x hits found" stays)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is that the message queue is out of TC's control. If this is a problem for you, please configure TC to use Lister as an external editor in Configuration - Options - Viewer/Editor:

1. Check "external viewer" for F3
2. In the "Default" field, enter the path to TC followed by /S=L "%1", e.g.
"c:\totalcmd\totalcmd.exe" /S=L "%1"
Author of Total Commander
https://www.ghisler.com
Post Reply