HomePhabricator

Follow-up I4acbe69420: BookletLayout: Fix focus of page switching

Authored by Esanders.

Description

Follow-up I4acbe69420: BookletLayout: Fix focus of page switching

  • Use document.activeElement to check if the page has focus as :focus doesn't work until a later event cycle.
  • Create a PageLayout.focus method so subclasses can choose to focus something other than the first focusable element.

Bug: T114562
Change-Id: I6a439cb13e572adaee38258a03b8b2d1a560aa0c

Details