Added support for arbitrary-shaped buttons in accessibility