Fix appendToLinesView
Use event capture for pane focus/blur events

Focusin/focusout don’t seem to bubble properly across shadow DOM
boundaries, so capturing is a more reliable alternative.