Fix for focus-problem and lost click-event when creating a new note