fix for home/end keyboard based scrolling