Fixed text changing in text entry

When updating from history or from the menu, the proper function(s)
is/are being called now, to allow autocomplete support and
callback/event support.