rem: if ((int)WMGetNotificationClientData(notification) == WMReturnTextMovement) { WMPerformButtonClick(panel->defBtn);
add: switch ((int)WMGetNotificationClientData(notification)) { case WMReturnTextMovement: if (panel->defBtn) WMPerformButtonClick(panel->defBtn); break; case WMEscapeTextMovement: if (panel->altBtn) WMPerformButtonClick(panel->altBtn); else { panel->done = 1; panel->result = WAPRDefault; } break; default: break;
context: endedEditingObserver(void *observerData, WMNotification *notification){    WMInputPanel *panel = (WMInputPanel*)observerData;        if ((int)WMGetNotificationClientData(notification) == WMReturnTextMovement) {	WMPerformButtonClick(panel->defBtn);    }}