Page 1 of 1

Redefine Hotkey for normal Plus and Minus keys

Posted: 2008-09-29, 09:23 UTC
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:

Posted: 2008-09-29, 10:40 UTC
by fenix_productions
2X-Byte
Support++

Posted: 2008-09-29, 19:47 UTC
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

Posted: 2008-10-29, 15:01 UTC
by sas2000
 
eugensyl wrote:add WIN key for combinations.
Yes i also need more key combinations.
 

Posted: 2008-10-30, 16:32 UTC
by ghisler(Author)
Win key support will be in TC 7.5, it's already implemented.

Posted: 2008-10-30, 17:19 UTC
by X-Byte
as well as the requested + and - keys?

Posted: 2008-11-02, 19:49 UTC
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]

Posted: 2008-11-03, 17:24 UTC
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.

Posted: 2008-11-03, 19:02 UTC
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.

Posted: 2008-11-03, 19:12 UTC
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!

Posted: 2008-11-03, 20:22 UTC
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 + - / *)

Posted: 2008-11-06, 17:24 UTC
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...

Posted: 2008-11-06, 22:38 UTC
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

Posted: 2008-11-10, 17:05 UTC
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...

Posted: 2008-11-10, 22:57 UTC
by Lefteous
2ghisler(Author)
Thank you :-)