Link to home
Start Free TrialLog in
Avatar of Ocrana
Ocrana

asked on

ACCELERATOR conflict

Hi,

I use a ACCELERATOR key "VK_SPACE" in my software. Works great. But now I have a edit field in my dialog and it is impossible to write a space inside this cause the VK_SPACE is "Blocked" by the ACCELERATOR function.
I want now to dactivate the ACCELERATOR while the edit field has focus, but where can I set this?
I have a value "nameEdit1.isFocused = true/false"  where I can check but I do not now in what function i can "disable" the ACCELERATOR tempory.

Thanks,

Ocrana
Avatar of alb66
alb66
Flag of Italy image

In my opinion the best solution is to use a different accelerator key, i.e. CTRL-SPACE
Hello,

maybe you can use a global variable.
When the edit field gets the focus you set this to TRUE and to FALES if the focus is removed.

In the accelerator you can check this variable.

Stefan
ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ocrana
Ocrana

ASKER

The Sublinks helped a lot