Check if editable when entering text

A check if the textfield is editable was missing when text is entered.