Cursor navigation inconsistency in custom columns

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

Cursor navigation inconsistency in custom columns

Post by *StatusQuo »

Hi,

I found a confusing inconsistency in cursor movement
(using standard behaviour SpecialCursorMovement=0, so cursor_left/right should activate the command line).

To reproduce:
Define a (new) custom columns view
- with only columns "Name" and "Extension" in it (any other being small enough to fit the window without horizontal scrollbar will also do),
- activate the option "Horizontal scrollbar" in its definition.
- Then adjust the column widths to use exactly the maximum possible space without showing a vertical scroll bar.
  • In Full view (Ctrl+F2):
    • cursor_left/right activates the command line (OK).
  • In Custom Columns Mode:
    • cursor_left/right activates the command line, if there is no vertical scroll bar (OK).
    • cursor_left/right moves the cursor 1 line up/down, if there is a vertical scroll bar (:arrow: wrong).
(I just assigned left/right keys to cm_FocusCmdLine as a workaround, waiting for side-effects...)

[Edit] Second workaround: As the above workaround prevents horizontal scrolling,
I now decreased the column size of "Name" by 1 pixel, this also helps.
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: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The reason for this behaviour: If you define a horizontal scrollbar, TC will try to scroll it when you use the left/right arrow keys, even if it isn't available.
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 »

Well, TC obviously does not try to scroll after shortening the columns by 1 pixel.
This (bad) behaviour only occurs when exactly the maximum size of the listbox is used by the existing columns.

[Edit] Additionally:
With an existing horizontal scrollbar, cursor keys left/right normally scroll the window left/right.
So IMO moving the cursor up/down is always the wrong reaction to cursor keys left/right in custom columns view, isn't it?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

2ghisler(Author)
So IMO moving the cursor up/down is always the wrong reaction to cursor keys left/right in custom columns view, isn't it?
How do you think about this?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply