angular-hotkeys icon indicating copy to clipboard operation
angular-hotkeys copied to clipboard

Displaying all possible keys for a combo in the cheatsheet

Open rerodrigues opened this issue 8 years ago • 1 comments

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.

rerodrigues avatar Jul 13 '16 21:07 rerodrigues

I also upped the karma-phantomjs-launcher version to 1.0.1 to fix the unsolved peer dependency error for phantomjs@>=1.9

rerodrigues avatar Jul 14 '16 04:07 rerodrigues