@duetds/components
Version:
This package includes Duet Components and related tools.
1 lines • 556 B
JavaScript
System.register([],function(e){"use strict";return{execute:function(){e({i:o,r:i});function n(e){if(e.keyCode===9){document.documentElement.classList.add("user-is-tabbing");window.removeEventListener("keydown",n);window.addEventListener("mousedown",t)}}function t(){document.documentElement.classList.remove("user-is-tabbing");window.removeEventListener("mousedown",t);window.addEventListener("keydown",n)}function o(){window.addEventListener("keydown",n)}function i(){window.removeEventListener("keydown",n);window.removeEventListener("mousedown",t)}}}});