www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Display.addFilter

reply bobef <bobef lessequal.com> writes:
I'm trying to add actions and stuff to my program... something like GTK 
so I catch all the KeyDown-s with addFilter but I have one little 
problem... I want to notify the focused control before taking any 
action. I tried with notifyListeners (crash) and Display.post (fails). 
Any other suggestions? Maybe addFilter is not the best solution, but is 
there other way to catch the key presses of any widget?
Feb 14 2006
parent bobef <bobef lessequal.com> writes:
Control c=display.getFocusControl();
if(c) c.sendEvent(event.type,event);
Feb 25 2006