public void DeleteSelection() { if (session != null) session.DeleteSelection (); }
void Delete(object obj, EventArgs e) { Gtk.Editable focus = Focus; if (focus != null) { focus.DeleteSelection(); } else { WidgetDesigner wd = SteticMain.CurrentDesigner; if (wd != null && wd.Selection != null) { wd.DeleteSelection(); } } }