Matteo Scandolo | 5053cbe | 2017-01-31 17:37:56 -0800 | [diff] [blame] | 1 | import {IXosKeyboardShortcutService, IXosKeyboardShortcutMap} from '../services/keyboard-shortcut'; |
| 2 | import './key-binding-panel.scss'; |
| 3 | |
| 4 | class XosKeyBindingPanelController { |
| 5 | static $inject = ['$scope', 'XosKeyboardShortcut']; |
| 6 | public bindings: IXosKeyboardShortcutMap; |
| 7 | constructor ( |
| 8 | private $scope: ng.IScope, |
| 9 | private XosKeyboardShortcut: IXosKeyboardShortcutService |
| 10 | ) { |
| 11 | this.bindings = this.XosKeyboardShortcut.keyMapping; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export const xosKeyBindingPanel: angular.IComponentOptions = { |
| 16 | template: require('./key-binding-panel.html'), |
| 17 | controllerAs: 'vm', |
| 18 | controller: XosKeyBindingPanelController |
| 19 | }; |