More keys support in shortcuts

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

More keys support in shortcuts

Post by *Black Dog »

[face=courier]The number of supported functions and internal commands is growing, may be it's time to increase the number of supported KBD keys?
1. It is impossible now to use "`", ",", "[", "]", etc. keys for keyboard remapping with Ctrl, Alt, Shift and their combinations, and only functional buttons with at least two modification keys (same C, A & S) work in Start menu.
2. Almost all of us have one more "modification" key Commander do not support - famous "Win key" (the cleanest on most keyboards I've ever seen ;)). IMHO it is logical to use "Win" key as modification key in Total Commander shortcuts.

P.S. I made a poll.[/face]
Last edited by Black Dog on 2003-03-01, 21:57 UTC, edited 1 time in total.
User avatar
ben hub
Member
Member
Posts: 132
Joined: 2003-02-06, 21:47 UTC
Location: Madagascar

Post by *ben hub »

2Black Dog
I agree with you, 2) is a very good idea :idea:
Benoît
# 4081
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 01-03-2003 20:39:18 +0000 ben hub wrote:

bh> is a very good idea

And very old. If you do need it, please send wish request to Christian.[/face]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, not possible. TC uses virtual key codes for hotkeys, and there are none (or no fixed) for these special keys - they are different on all international keyboards...

Also the Win key is never passed to applications but caught by the operating system. You need special software (using a system-wide keyboard hook) to catch the Windows key.
Author of Total Commander
https://www.ghisler.com
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

How about the passing the key constants VK_LWIN or VK_RWIN to the API functions GetKeyState(int nVirtKey) or GetAsyncKeyState(int vKey)?
Of all the planets I've been to, this one is my favorite.
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 would have to call GetAsyncKeyState in a loop every few milliseconds - not a good idea in a multitasking environment. TC reacts to WM_KEYDOWN and WM_KEYUP, but these don't seem to be sent for the Windows keys.
Author of Total Commander
https://www.ghisler.com
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 02-03-2003 15:51:43 +0000 ghisler(Author) wrote:

g> Sorry, not possible.

The only thing I can say, I use all this keys in other applications' shortcuts regardless of all international keyboards differences, so it is possible in general.
BTW, Christian, why do you dislike the idea of "global" shortcuts?[/face]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Christian, why do you dislike the idea of "global" shortcuts?
Global shortcuts cannot be used in other programs for other commands...
Author of Total Commander
https://www.ghisler.com
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 17-03-2003 18:11:39 +0000 ghisler(Author) wrote:

g> Global shortcuts cannot be used in other programs for other
g> commands...


Yes, I know ;). Actually this is the purpose of such a shortcuts - to work regardless of other programs.[/face]
Post Reply