Closed Elliot-Feary closed 6 years ago
Hi there, I'm relatively new to Angular and JavaScript and I'm trying to get a hotkey to work. I followed the video instructions but cant seem to add a new hotkey. It doesnt show up in the cheat sheet either.
`app.controller('MainCtrl', function($scope, $http, hotkeys) {
hotkeys.add({ combo: 'h', description: 'next hand', callback: function() { console.log("test"); //$scope.nextHand(); } });`
Here is my script.js file and
`<!DOCTYPE html>
Hi there, I'm relatively new to Angular and JavaScript and I'm trying to get a hotkey to work. I followed the video instructions but cant seem to add a new hotkey. It doesnt show up in the cheat sheet either.
`app.controller('MainCtrl', function($scope, $http, hotkeys) {
Here is my script.js file and
`<!DOCTYPE html>