added passing tabindex to button block

Fixes #1174
@narqo Yeah, right, sry. Fixed.