fixed keyboard typing mistreated as cursor location change