Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed May 9, 2022
1 parent 22d59dd commit 4d53757
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/controllers/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@
};

$scope.urlTextboxKeyDown = function (event) {
if (event.keyCode === 13 && event.ctrlKey && $scope.newTaskForm.$valid) {
var keyCode = event.keyCode || event.which || event.charCode;

if (keyCode === 13 && event.ctrlKey && $scope.newTaskForm.$valid) {
$scope.startDownload();
}
};
Expand Down

0 comments on commit 4d53757

Please sign in to comment.