protected override bool OnKeyDelete(bool down) { base.OnKeyDelete(down); if (!down) return true; if (HasSelection) { EraseSelection(); return true; } if (m_CursorPos >= TextLength) return true; DeleteText(m_CursorPos, 1); return true; }