Fixes #1270
Merge pull request #1277 from Tide/1270.DialogAccentFix

Fixes #1270