Fix to stop plot loosing focus when widget is pdev editor.