Tweaked handling of SDL events in widgets inside custom_objects.
Made the tbs_client command accept port as a string or integer.