Fix tabindex implementation.

Fixes #12.