editbox: only draw selection when focused and limit selection display to visible part of editbox