Stop handle keyevents in filetree if modal visible
This commit is contained in:
@@ -972,7 +972,7 @@ function FileTreeController($scope, $translate, $timeout, Client) {
|
||||
|
||||
// handle save shortcuts
|
||||
window.addEventListener('keydown', function (event) {
|
||||
if ($scope.$parent.activeView !== $scope.view || $scope.$parent.viewerOpen) return;
|
||||
if ($scope.$parent.activeView !== $scope.view || $scope.$parent.viewerOpen || isModalVisible()) return;
|
||||
|
||||
if (event.key === 'ArrowDown') {
|
||||
$scope.$apply(selectNext);
|
||||
|
||||
Reference in New Issue
Block a user