VulpesOS/gaia/tv_apps/smart-home/js/utils.js
OverSu b38dea0597 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.
2026-09-30 23:13:03 +02:00

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);