Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Oct 1, 2022
1 parent 1ab07b6 commit cb7bfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/controllers/new.js
Expand Up @@ -202,7 +202,7 @@
$scope.urlTextboxKeyDown = function (event) {
var keyCode = event.keyCode || event.which || event.charCode;

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

0 comments on commit cb7bfb1

Please sign in to comment.