Skip to content

Commit 5f82777

Browse files
committed
Merge branch 'master' of https://github.com/JoelEager/schedulemaker into JoelEager-master
2 parents db1546f + 70adb3f commit 5f82777

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

assets/src/modules/sm/App/providers/globalKbdShortcutsFactory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular.module('sm').factory('globalKbdShortcuts', function($rootScope) {
22
var globalKbdShortcuts = {
3-
'bindCtrlEnter': function(callback) {
4-
Mousetrap.bind('mod+enter', function(e) {
3+
'bindEnter': function(callback) {
4+
Mousetrap.bind('enter', function(e) {
55
$rootScope.$apply(callback);
66
return true;
77
});

assets/src/modules/sm/Search/controllers/SearchController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* The controller holding all the logic for the search page
33
*/
4+
45
angular.module('sm').controller('SearchController', function($scope, $http, entityDataRequest, globalKbdShortcuts) {
56

67
var defaultOptions = {
@@ -203,7 +204,7 @@ angular.module('sm').controller('SearchController', function($scope, $http, enti
203204
}, 100);
204205
};
205206

206-
globalKbdShortcuts.bindCtrlEnter($scope.findMatches);
207+
globalKbdShortcuts.bindEnter($scope.findMatches);
207208
globalKbdShortcuts.bindPagination(function() {
208209
if (this.keyCode == 39 && $scope.searchPagination.currentPage + 1 < $scope.numberOfPages()) {
209210
$scope.searchPagination.currentPage++;

0 commit comments

Comments
 (0)