Remapping of certain keys doesn't work in command line

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
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Remapping of certain keys doesn't work in command line

Post by *petermad »

If I remap any Ctrl+Letter combination, then the original command for the key is executed, when I place the cursor is in the command line.

This is an unexpected "feature". :roll:
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Confirmed.

WXP SP3

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50522
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This may be intentional, I made several exceptions for remappings. I will check it in detail.
Author of Total Commander
https://www.ghisler.com
infimum
Junior Member
Junior Member
Posts: 39
Joined: 2007-12-08, 18:43 UTC

Post by *infimum »

This confused me. I mapped Shift+Ctrl+J to something, making sure (Shift+)Ctrl+J isn't listed in the Help file.

Alas, Ctrl+J is reserved! Remapping couldn't override it.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

infimum wrote:Alas, Ctrl+J is reserved! Remapping couldn't override it.
Although Ctrl+I works like [Tab] - moving the cursor to the other pane, I bet you did not push the check-button to confirm the remappuing of Ctrl+i.

I have remapped it here and it worked like a charm.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Yeah make sure you click the green [checkMark]. I've been using TC for a long time and I almost always forget to do that. I'm so used to every other Dialog where [OK] is the confirmation.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50522
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have checked it - indeed many commands are excluded from remapping on the command line. This is necessary because otherwise you couldn't even enter text or select it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can understand that editing keys like Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Y, Ctrl+E, Ctrl+K and Ctrl+T are blocked from being redirected in the command line.

But take for example Ctrl+S - it does the same in- and outside the command line, so why can that key combination not be redirected?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50522
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

In principle it could, but in practice it's too complex to find out what is really important there and what isn't.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Fair enough - but maybe in the next version, add a paragraph in the Help file under "Configuration - Misc." -> "Redefine hotkeys (keyboard remapping)", mentioning that redifinition is not fully supported in command line (or not supported for redifinition of Ctrl+Letter hotkeys).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply