angular-hotkeys
angular-hotkeys copied to clipboard
Displaying all possible keys for a combo in the cheatsheet
Hi @chieffancypants I've changed the format function to allow displaying all possible keys for each combo in the cheatsheet.
A possible usecase could be, for example, when you want to create shortcuts using keys that doesn't exist in all platforms.
hotkeys.bindTo($scope)
.add({
combo: ['home','alt+left'],
description: "Go to beginning (PC/Mac)",
callback: function (event, hotkey) {
$scope.goToBeginning();
}
});
It will now display both shortcuts on the cheat sheet.
I also upped the karma-phantomjs-launcher
version to 1.0.1
to fix the unsolved peer dependency error for phantomjs@>=1.9