Redefine Hotkey for normal Plus and Minus keys

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
X-Byte
Member
Member
Posts: 173
Joined: 2004-11-29, 09:34 UTC
Location: Hessen, Germany

Redefine Hotkey for normal Plus and Minus keys

Post by *X-Byte »

Every now and then people wonder why it's not possible to change the keyboard mapping for the normal (not Numpad) Plus (+) and Minus (-) in combination with keyboard modifiers like Ctrl, Shift, Alt.

This would be very useful for people without numpad keys for selecting groups of files. (And those Thinkpad users as well ;-)

There have been workarounds and scripts which address this absence of functionality.

Nevertheless, the easiest solution would be to finally add these keys to the list for "Keyboard remapping" by Christian Ghisler himself.

And while you're at it, maybe add the Windows key as additional modifier? :idea:
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2X-Byte
Support++
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

2X-Byte

Support add WIN key for combinations.
Personal I use HoeKey or RegisterHotKey for this extension.
It would be great to find in next version this improvement.

Best wishes,
Eugen
My Best Wishes,

Eugen
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
eugensyl wrote:add WIN key for combinations.
Yes i also need more key combinations.
 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Win key support will be in TC 7.5, it's already implemented.
Author of Total Commander
https://www.ghisler.com
User avatar
X-Byte
Member
Member
Posts: 173
Joined: 2004-11-29, 09:34 UTC
Location: Hessen, Germany

Post by *X-Byte »

as well as the requested + and - keys?
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

ghisler(Author) wrote:Win key support will be in TC 7.5, it's already implemented.
Good news! Many thanks!!!

Are possible any others combinations like this: ESC + F4 , for example?
Or just combinations with Ctrl, Alt, Shift, and now, Win + other key...

It's good to know...[/b]
My Best Wishes,

Eugen
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

as well as the requested + and - keys?
Hmm, +-*/ on the numeric keypad have been supported since the function exists, what do you mean?
Are possible any others combinations like this: ESC + F4 , for example?
To my knowledge, many keyboards do not support multiple simultaneous keypresses EXCEPT for the special Shift, Ctrl, Alt+Win keys.
Author of Total Commander
https://www.ghisler.com
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

2ghisler(Author)
ghisler(Author) wrote:
as well as the requested + and - keys?
Hmm, +-*/ on the numeric keypad have been supported since the function exists, what do you mean?
X-Byte wrote:Every now and then
people wonder why it's not possible
to change the keyboard mapping
for the normal (not Numpad) Plus (+) and Minus (-)
in combination with keyboard modifiers like Ctrl, Shift, Alt.
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, +-*/ on the numeric keypad have been supported since the function exists, what do you mean?
The request from X-Byte was for the non-numeric + and -.

But that might be problematic since several languages needs Shift to be pressed to activate + and/or - and there are even keyboard layout's where + and - is on the same key!
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
X-Byte
Member
Member
Posts: 173
Joined: 2004-11-29, 09:34 UTC
Location: Hessen, Germany

Post by *X-Byte »

Well... in fact you can even redefine Shift+A and apply a command to it.

Does it make sense when you try to type something in the command line that contains a capitalized A?

Probably not, but the choice should be up to the user.

In some environments specific key combinations make sense, in others they don't. All I'm asking for is to have the choice. (as stated multiple times above, for non-numpad + - / *)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - it's indeed not possible to redefine + or - on the normal keyboard, because they are on different keys depending on the used national keyboard. Ctrl+"+" does not create a character, so the key itself must be detected somehow...
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Microsoft writes in MSDN that the virtual key codes for

VK_OEM_PLUS
VK_OEM_MINUS

are language-independent. Windows 2000 is required to make them work.

http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx

Adding support for the Windows key can also be added easily by using GetAsyncKeyState with VK_LWIN and VK_RWIN in WM_KEYDOWN.

I have tested a lot of virtual key codes including the two mentioned above and the Windows key as modifier and it all works fine.

I personally would add the following keys. The should cause no problems:
- More F keys (hey my keyboard has 19 function keys :-) )
- VK_OEM_COMMA
- VK_OEM_MINUS
- VK_OEM_PERIOD
- Side specific modifier keys
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.5 will support the Windows key as a modifier, it will not distinguish between left and right win key as it doesn't between left and right Ctrl key either.

Thanks for the info about these VK_OEM keys, I didn't know about them...
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Thank you :-)
Post Reply