Merge pull request #5340 from umbraco/v8/feature/ux-disable-tabbing-state-with-a-mouse-click

Disable tabbing state if user clicks
This commit is contained in:
Warren Buckley
2019-04-26 10:19:24 +01:00
committed by GitHub

View File

@@ -26,8 +26,15 @@ function MainController($scope, $location, appState, treeService, notificationsS
if (evt.keyCode === 9) {
$scope.tabbingActive = true;
window.removeEventListener('keydown', handleFirstTab);
window.addEventListener('mousedown', disableTabbingActive);
}
}
function disableTabbingActive(evt) {
$scope.tabbingActive = false;
window.removeEventListener('mousedown', disableTabbingActive);
window.addEventListener("keydown", handleFirstTab);
}
window.addEventListener("keydown", handleFirstTab);