Scroll to current line for non-top-level stack frames is working again
Keybindings work after switching stack tabs

Previously, clicking on a tab to change where you were in the stack
set the focus to the anchor element of the tab, which fails the test.

This changes the test to check whether the triggering element is
inside a form of some kind.