Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
13
gaia/tv_apps/smart-home/js/utils.js
Executable file
13
gaia/tv_apps/smart-home/js/utils.js
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
(function(exports) {
|
||||
exports.Utils = {
|
||||
holdFocusForAnimation: function utils_holdFocusForAnimation() {
|
||||
// we have to move focus to another element to prevent user press enter
|
||||
// to trigger unexpected behavior. We cannot use blur() to do it because
|
||||
// it makes smart-home without focus. In this case, other apps can
|
||||
// request focus from smart-home which makes focus lost, bug 1161940.
|
||||
document.getElementById('main-section').focus();
|
||||
}
|
||||
};
|
||||
})(window);
|
||||
Loading…
Reference in a new issue