Exit text input on 'enter'
Fix line binary search, improve perf of linehover event