DtWidget: added appropriate KeyPress event handler to DtIcon widget
This commit is contained in:
@@ -1088,6 +1088,10 @@ IconActivate(
|
||||
}
|
||||
else
|
||||
{
|
||||
if(event->type==KeyPress){
|
||||
G_Armed(g)=False;
|
||||
(*call_callback)(g,G_Callback(g),XmCR_SELECT,event);
|
||||
}else{
|
||||
delay = (unsigned long)
|
||||
XtGetMultiClickTime (XtDisplay (g));
|
||||
G_ClickEvent (g) = (XButtonEvent *)
|
||||
@@ -1100,6 +1104,7 @@ IconActivate(
|
||||
delay, (XtTimerCallbackProc)ClickTimeout,
|
||||
(XtPointer) g);
|
||||
}
|
||||
}
|
||||
|
||||
if (G_ShadowThickness (g) > 0)
|
||||
(*expose) ((Widget)g, event, NULL);
|
||||
|
||||
Reference in New Issue
Block a user