delete local msg before losing focus