Refocus on the map when an input is clicked on the layers dialog. fixes #2148