Fixing issue where feature editor jummps when regaining focus, and undo operation selecting the whole editor content after saving a file