Detect an Escape keystroke event don't know which component is getting focus?
Posted on 2004-04-23
Anyone here please help me.
How can I detect an Escape keystroke even if I don't know which component is getting focus in runtime?
So I can do something like, whenener user press the Escape key, ShowMessage('I've press the Escape key');
Ah, one more question, the speed button (TSpeedButton) doesn't have .Cancel property as a button have which reponses to Escape keypress if .Cancel set to true. How can I make a speed button response to Escape keypress? I tried to make a child class of TSpeedButton which has Cancel property but unsuccessful (maybe I didn't know how to do it).