void deleteEvent(){
		if (timeLineObject.selection.size()>0) {
			for (int i=0;i<timeLineObject.selection.size();i++) {
				timeLineObject.removeFromGroups((Event)timeLineObject.selection.get(i));
				timeLineObject.timeLine.remove(timeLineObject.selection.get(i));
			}
			timeLineObject.selection.clear();
		}
		else  if (timeLineObject.lastSelEvent>-1) {
			timeLineObject.removeFromGroups((Event)timeLineObject.timeLine.get(timeLineObject.lastSelEvent));
			timeLineObject.timeLine.remove(timeLineObject.lastSelEvent);
			
		}
		timeLineObject.rebuildTimeLine();
	}