123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- import { Component } from '@angular/core';
- @Component({
- selector: 'evt-shortcuts',
- templateUrl: './shortcuts.component.html',
- styleUrls: ['./shortcuts.component.scss'],
- })
- export class ShortcutsComponent {
- // tslint:disable-next-line: no-any
- public shortcuts: Array<{ label: string, instructions: any[] }> = []; // TODO: get rid of instructions
- constructor() {
- this.initShortcuts();
- }
- private initShortcuts() {
- this.shortcuts.push({
- label: 'OpenProjectInfo',
- instructions: [
- { type: 'key', text: 'ALT' },
- { text: '+' },
- { type: 'key', text: 'I' }],
- });
- this.shortcuts.push({
- label: 'OpenLists',
- instructions: [
- { type: 'key', text: 'ALT' },
- { text: '+' },
- { type: 'key', text: 'L' }],
- });
- this.shortcuts.push({
- label: 'OpenCurrentBookmark',
- instructions: [
- { type: 'key', text: 'ALT' },
- { text: '+' },
- { type: 'key', text: 'B' }],
- });
- this.shortcuts.push({
- label: 'OpenEVTInfo',
- instructions: [
- { type: 'key', text: 'ALT' },
- { text: '+' },
- { type: 'key', text: 'SHIFT' },
- { text: '+' },
- { type: 'key', text: 'E' }],
- });
- this.shortcuts.push({
- label: 'OpenShortcuts',
- instructions: [
- { type: 'key', text: 'ALT' },
- { text: '+' },
- { type: 'key', text: 'SHIFT' },
- { text: '+' },
- { type: 'key', text: 'S' }],
- });
- // this.shortcuts.push({
- // label: 'ChangeView',
- // instructions: [
- // { type: 'key', text: 'ALT' },
- // { text: '+' },
- // { type: 'key', text: '1' },
- // { text: '/' },
- // { type: 'key', text: 'ALT' },
- // { text: '+' },
- // { type: 'key', text: '2' },
- // { text: '/' },
- // { type: 'key', text: 'ALT' },
- // { text: '+' },
- // { type: 'key', text: '3' },
- // { text: '...' }]
- // });
- // this.shortcuts.push({
- // label: 'ChangePage',
- // instructions: [
- // { type: 'key', text: '←' },
- // { text: 'and' },
- // { type: 'key', text: '→' }]
- // });
- // this.shortcuts.push({
- // label: 'ChangeDocument',
- // instructions: [
- // { type: 'key', text: '↑' },
- // { text: 'and' },
- // { type: 'key', text: '↓' }]
- // });
- // this.shortcuts.push({
- // label: 'FullScreen',
- // instructions: [
- // { type: 'key', text: 'ctrl' },
- // { text: '/' },
- // { type: 'key', text: 'cmd' },
- // { text: '+' },
- // { type: 'key', text: 'alt' },
- // { text: '+' },
- // { type: 'key', text: 'shift' },
- // { text: '+' },
- // { type: 'key', text: 'f' }]
- // });
- // this.shortcuts.push({
- // label: 'FullScreen',
- // instructions: [
- // { type: 'key', text: 'ctrl' },
- // { text: '/' },
- // { type: 'key', text: 'cmd' },
- // { text: '+' },
- // { type: 'key', text: 'alt' },
- // { text: '+' },
- // { type: 'key', text: 'f' }]
- // });
- this.shortcuts.push({
- label: 'CloseModalIfOpened',
- instructions: [
- { type: 'key', text: 'ESC' }],
- });
- }
- }
|