Unexpected caret movement in current directory

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

I am hijacking this thread because I think the CtrlArrow settings also broke something else.

When I copy a file into the current directory (using Shift-F5) and mix the Ctrl-Right and Ctrl-Shift-Right keys, the text in the copy dialog is suddenly rightaligned. It is not always the same behavior, but one situation is reproducable completely.

Filename to copy is "CvB VB-SE2009xxxx Offerte .doc"

Shift-F5 -> filename is selected
Home -> Caret is at the first position in the dialogbox
Ctrl-Left -> caret is at the V
Ctrl-Shift-Left -> select "VB-"

Now the filename is right aligned in the dialogbox!

TotalCommander 7.04a (Fresh inifile is no solution)

Setting CtrlArrow=0 works around this bug.
Regards,
Cornelis
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately it's not possible to fix this problem, sorry. The edit control doesn't allow to set both the cursor location and selection programmatically at the same time, and the selection is set when you use the Ctrl key (so the cursor position cannot be set).
Author of Total Commander
https://www.ghisler.com
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

Ok, I understand that this is not fixable. But what about the right aligning of the text? Is this something only I see here?
Regards,
Cornelis
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

But what about the right aligning of the text?
That happens because you have enabled shifting of Right-to-left or Left-to-right readding direction in your Windows, probably by installing complex languages. Run intl.cpl and click the tab "Language" to verify.

The same happens if you right click the text box and choose "Right-to-left reading direction".

The global Windows shortcuts for this are:
Ctrl+LeftShift = Left-to-right reading direction
Ctrl+RightShift = Right-to-left reading direction

So it is a Windows feature, TC just happens to support it.
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
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

Thanks Peter, I didn't notice that option!
Regards,
Cornelis
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Unexpected caret movement in current directory

Post by *DrShark »

yyang wrote:Today I noticed an unexpected caret movement during text selection from the "current directory" field. Say my current directory was "D:\Tmp\test", and I just wanted to copy "\test". Then I highlighted the field, positioned the caret to the end (with nothing selected), and pressed "Ctrl-Shift-Left". After that "test" was selected. Then I pressed "Shift-Left", expecting to include the "" to the left of "test" into the selection, but it turned out the trailing "" was deselected!
I can confirm change in 7.5 to more expected behaviour.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks very much!
Author of Total Commander
https://www.ghisler.com
Post Reply