Fix autofocus

fix #4465
fix #4941
backport of 4803 to stable5
Merge pull request #5164 from owncloud/share-autofocus

Share autofocus