blob: 4ee31eb7f7123217670299a2c627518d71fe1102 [file] [log] [blame]
Matteo Scandolo5053cbe2017-01-31 17:37:56 -08001import {IXosKeyboardShortcutService, IXosKeyboardShortcutMap} from '../services/keyboard-shortcut';
2import './key-binding-panel.scss';
3
4class 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
15export const xosKeyBindingPanel: angular.IComponentOptions = {
16 template: require('./key-binding-panel.html'),
17 controllerAs: 'vm',
18 controller: XosKeyBindingPanelController
19};