Stop handle keyevents in filetree if modal visible

This commit is contained in:
Johannes Zellner
2022-08-25 14:21:57 +02:00
parent ba9530eb32
commit 093358810b
+1 -1
View File
@@ -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);