{"version":3,"sources":["webpack:///./Forsvaret.Website/Scripts/Shared/helpers/helper.focusOnKeyboard.js"],"names":["handleFirstTab","e","keyCode","document","body","classList","add","window","removeEventListener","addEventListener","handleMouseDownOnce","remove","_default","init","exports","default"],"mappings":"0FAAA,SAASA,EAAeC,GACF,IAAdA,EAAEC,UACFC,SAASC,KAAKC,UAAUC,IAAI,mBAE5BC,OAAOC,oBAAoB,UAAWR,GACtCO,OAAOE,iBAAiB,YAAaC,IAI7C,SAASA,IACLP,SAASC,KAAKC,UAAUM,OAAO,mBAE/BJ,OAAOC,oBAAoB,YAAaE,GACxCH,OAAOE,iBAAiB,UAAWT,G,kEAKtC,IAAAY,EAEc,CACXC,KALJ,WACIN,OAAOE,iBAAiB,UAAWT,KAKtCc,EAAAC,QAAAH","file":"Forsvaret.focusOnKeyboard.57dac68f9107ba3e0c2f.chunk.js","sourcesContent":["function handleFirstTab(e) {\r\n if (e.keyCode === 9) {\r\n document.body.classList.add('user-is-tabbing');\r\n\r\n window.removeEventListener('keydown', handleFirstTab);\r\n window.addEventListener('mousedown', handleMouseDownOnce); // eslint-disable-line\r\n }\r\n}\r\n\r\nfunction handleMouseDownOnce() {\r\n document.body.classList.remove('user-is-tabbing');\r\n\r\n window.removeEventListener('mousedown', handleMouseDownOnce);\r\n window.addEventListener('keydown', handleFirstTab);\r\n}\r\n\r\nfunction init() {\r\n window.addEventListener('keydown', handleFirstTab);\r\n}\r\n\r\nexport default {\r\n init\r\n};\r\n"],"sourceRoot":""}