Key event lost just after (~100ms) focusing Total Commander

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
derji
Junior Member
Junior Member
Posts: 3
Joined: 2023-08-18, 11:53 UTC

Key event lost just after (~100ms) focusing Total Commander

Post by *derji »

Key event lost just after focusing Total Commander.

Steps to reproduce:
  1. Open Total Commander (11.00 64-bit (2023-08-02)) and navigate to a directory with several items. Make the first item active.
  2. Open another program (for example Chrome).
  3. Focus on another program (make that other program window active).
  4. Alt-tab to Total Commander and within 100ms press the "down arrow" key.
  5. The active file doesn't change.
  6. Press "down arrow" key again - now it works as expected.
The issue happens also when you click on the TC's title bar to focus it (instead of alt-tab).
It is not specific to the "down arrow" key - other keys (F3, F7, Tab, ...) also have no effect when presses within ~100ms after focusing the Total Commander window.

I've just downgraded to 10.52 (2022-10-26) and it works fine.

OS: Microsoft Windows 10 Pro / 10.0.19045 N/A Build 19045
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Key event lost just after (~100ms) focusing Total Commander

Post by *petermad »

I can reproduce this with both TC 10.52 and TC 11.00 if I almost press Alt+Tab and Arrow-Down at the same time. It is not every time it happens though.

Since I can also reproduce it with TC 10.52 - I cannot be certain that it is a TC bug. I can actually reproduce it with Windows Explorer too...
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
derji
Junior Member
Junior Member
Posts: 3
Joined: 2023-08-18, 11:53 UTC

Re: Key event lost just after (~100ms) focusing Total Commander

Post by *derji »

Thanks petermad for trying to reproduce the issue!

I've created the following AHK script and calibrated the last "Sleep" on TC 10.52. Then re-installed TC 11.00... and it works fine (with the script and manually).

I will let you know if the issue reappears. Thanks!

Code: Select all

#SingleInstance Force
^Q::
	; Make sure TC window is active and there is at lease one another program opened
	; Press Ctrl+Q to run the test
	Send {Home}
	Sleep 250
	Send !{Tab}
	Sleep 1000
	Send !{Tab}
	; For 10.52 Win64 (2022-10-26) the shortest delay (22) after
	; which the 2nd item in the current directory is selected
	Sleep 22
	Send {Down}
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Key event lost just after (~100ms) focusing Total Commander

Post by *ghisler(Author) »

2derji
Are you able to reproduce it with Explorer too like petermad?
Author of Total Commander
https://www.ghisler.com
derji
Junior Member
Junior Member
Posts: 3
Joined: 2023-08-18, 11:53 UTC

Re: Key event lost just after (~100ms) focusing Total Commander

Post by *derji »

ghisler(Author) wrote: 2023-08-20, 12:40 UTC 2derji
Are you able to reproduce it with Explorer too like petermad?
No. I only had this issue with TC 11.00 before re-installing it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Key event lost just after (~100ms) focusing Total Commander

Post by *ghisler(Author) »

Total Commander ignores navigation in the file panels while it is re-reading them. Each time you switch from a different program to Total Commander, it re-reads the two panels, but refreshes the list only when there are any differences.

You can reproduce this easily by going to a directory with a lot of files.

This behaviour is intentional.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Key event lost just after (~100ms) focusing Total Commander

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply