Text is now saved when exiting enter text with right mouse button