Redefine Hotkey for normal Plus and Minus keys
Moderators: white, Hacker, petermad, Stefan2
Redefine Hotkey for normal Plus and Minus keys
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?
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?
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Win key support will be in TC 7.5, it's already implemented.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hmm, +-*/ on the numeric keypad have been supported since the function exists, what do you mean?as well as the requested + and - keys?
To my knowledge, many keyboards do not support multiple simultaneous keypresses EXCEPT for the special Shift, Ctrl, Alt+Win keys.Are possible any others combinations like this: ESC + F4 , for example?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
ghisler(Author) wrote:Hmm, +-*/ on the numeric keypad have been supported since the function exists, what do you mean?as well as the requested + and - keys?
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.
The request from X-Byte was for the non-numeric + and -.Hmm, +-*/ on the numeric keypad have been supported since the function exists, what do you mean?
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
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
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 + - / *)
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 + - / *)
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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
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
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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...
Thanks for the info about these VK_OEM keys, I didn't know about them...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com