enyojs/moonstone — pull request #1414 by aarontam (2014-06-25 02:52:22+00:00)
Title: BHV-10787: Capture Spotlight focus in fullscreen mode.

Issue
-------
Upon initially changing to fullscreen video mode, when the pointer times out and hides, the banner and/or player controls cannot be brought back via the 5-way up/down keys.

Fix
----
We now capture the `onSpotlightFocus` event via the capture API to constrain Spotlight focus to the `moon.VideoPlayer` in fullscreen mode. We also set pointer mode to `false` and programmatically spot the player when the fullscreen controls are automatically hidden to ensure that the `spotNearestToPointer` logic is not run when subsequently pressing a 5-way key (as this attempts to spot the nearest control to the pointer and does not process the 5-way directional press), otherwise a re-press of the 5-way key is required. This has the side effect of also resolving this same issue for `AlwaysViewingPanelsWithVideoSample` and `VideoPlayerSample`. We have utilized a similar technique in `moon.ExpandableInput` to forcibly spot the input header: https://github.com/enyojs/moonstone/blob/master/source/ExpandableInput.js#L152

Enyo-DCO-1.1-Signed-off-by: Aaron Tam