This way it's possible to control again cvarlist once an item has been clicked
void CvarList_Filter_Change(entity box, entity me);
void CvarList_Value_Change(entity box, entity me);
void CvarList_Revert_Click(entity btn, entity me);
+void CvarList_End_Editing(entity box, entity me);
#endif
#ifdef IMPLEMENTATION
me.cvarValueBox.cursorPos = strlen(me.cvarDefault);
}
+void CvarList_End_Editing(entity box, entity me)
+{
+ box.parent.setFocus(box.parent, me);
+}
+
#endif
cvarlist.cvarValueBox = e;
e.onChange = CvarList_Value_Change;
e.onChangeEntity = cvarlist;
+ e.onEnter = CvarList_End_Editing;
+ e.onEnterEntity = cvarlist;
me.TD(me, 1, 1, e = makeXonoticButton(string_null, SKINCOLOR_CVARLIST_REVERTBUTTON));
cvarlist.cvarDefaultBox = e;
e.onClick = CvarList_Revert_Click;