add: if (event->xkey.keycode == panel->escKey) { if (panel->altBtn || panel->othBtn) { WMPerformButtonClick(panel->othBtn ? panel->othBtn : panel->altBtn); } else { panel->result = WAPRDefault; panel->done=1; } }
context: handleKeyPress(XEvent *event, void *clientData){    WMAlertPanel *panel = (WMAlertPanel*)clientData;    if (event->xkey.keycode == panel->retKey) {	WMPerformButtonClick(panel->defBtn);    }}