Fixed input widget history so that pressing "down" while typing a message no longer causes the half-typed message to be permanently lost.