Discussion:
ALT keys - works without pressing ALT
(too old to reply)
jodleren
2010-05-13 11:21:43 UTC
Permalink
Hi all

I use the TDBGridEh (enhanced), in a from togther with buttons such as
Select and Close - as &Select and &Close.
They should react to Alt+S and Alt+C only, but they react to simply S
and C.

Any ideas why and how I can overcome the problem?

It is a modal window.

Sonnich
Maarten Wiltink
2010-05-17 07:38:48 UTC
Permalink
Post by jodleren
I use the TDBGridEh (enhanced), in a from togther with buttons such as
Select and Close - as &Select and &Close.
They should react to Alt+S and Alt+C only, but they react to simply S
and C.
Any ideas why and how I can overcome the problem?
It's not a bug, it's a feature.

If the focus is on a control that will take text input, the focused
control will receive typed text. But if simple unshifted keypresses
would otherwise be lost, they may be captured as accelerators. (By
Windows. Probably nothing you can do about that.)

Doubtlessly there are subtleties involved, like what happens for
readonly editboxes and such, but that's the basic idea.

Groetjes,
Maarten Wiltink

Loading...