Unzip progress dialog: missing keyboard navigation

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
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Unzip progress dialog: missing keyboard navigation

Post by *StatusQuo »

TC 7.5b6:
When unzipping a single zip file (Alt+F9, internal unzip) TC shows 3 buttons in the progress dialog:
Pause, Cancel, Background.
You can navigate through the buttons using TAB and cursor keys left/right and up/down.

When unzipping multiple zip files though the Background button is missing (what's OK),
just Pause and Cancel are there.
:arrow: But you can't navigate through the buttons by keyboard in any way.

Expected:
Same keyboard navigation abilities also when there is no Background button.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Support++
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, this isn't currently supported. Maybe in a later version.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Improved, but not completely solved in TC 7.50pb8:

For internal unzip (and un-tgz):
- TAB works as expected (toggling between Pause and Cancel)
- Cursor keys (all directions) navigate to not existing buttons, e.g. right/down:
Cancel -> (invisible focus) -> (invisible focus) -> Pause

For external unrar:
No navigation possible yet.

For internal unrar:
All OK.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I could make it work for internal functions only. I'm using "TranslateMessage", which is normally not used for Delphi controls, but the only way to make it work here. I will move this to "will not be changed" now.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Navigation with cursor keys is still strange in the internal dialog, too (where Tab key is working),
the focus also goes to the progress bars.
Order for right and down arrow wrote:TButton3 (Cancel) => msctls_progress321 => msctls_progress322 => TButton1 (Pause)
AHK workaround, that fixes both internal and external unpack progress dialog navigation:

Code: Select all

#IfWinActive, ahk_class TDLG2FILEACTIONMIN
	Tab::
	+Tab::
	Right::
	Left::
	Up::
	Down::
		ControlGetFocus, tcud_sFocus
		if (tcud_sFocus = "TButton1")	; or (SubStr(tcud_sFocus, 17) = "msctls_progress32")
		{
			ControlFocus, TButton3	; Cancel
		} else {
			ControlFocus, TButton1	; Pause
		}
		Return
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply