Changes to try to make insert mode work in lineedits.