added passing tabindex to button block

Fixes #1174
Oh, I haven't noticed different `mode`s there, sorry.