cm_FocusButtonBar and Enter

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

cm_FocusButtonBar and Enter

Post by *MVV »

I found a thing that isn't good. As we know, cm_FocusButtonBar allows to put focus onto button bar - great! But when I add cm_FocusButtonBar to main menu and choose it and press Enter in order to activate, TC places focus onto button bar and executes first button action immediately.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately ENTER is sent to the bar too. :(

I don't think that there is a workaround.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

As I see, when I press Enter, button bar gets WM_KEYDOWN and WM_KEYUP. When I press Enter for activating button bar, it only gets an invalid WM_KEYUP message. So, if you will process only WM_KEYDOWN for activating toolbar commands etc. by VK_RETURN and other keys, all should work fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that, thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Perfect, it works as should! Thanks! :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for reporting it!
Author of Total Commander
https://www.ghisler.com
Post Reply