texteditor: better deal with focus
texteditor: better deal with focus

LivelyKernel/LivelyKernel,NikolaySuslov/LivelyKernel,pascience/LivelyKernel,pascience/LivelyKernel,LivelyKernel/LivelyKernel,NikolaySuslov/LivelyKernel,LivelyKernel/LivelyKernel,pascience/LivelyKernel,NikolaySuslov/LivelyKernel