Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
13 lines
508 B
JavaScript
Executable file
13 lines
508 B
JavaScript
Executable file
'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);
|