fix(keymap): Don't show keymap description in the key action popover (#572)

This commit is contained in:
Róbert Kiss
2018-01-29 23:40:41 +01:00
committed by László Monda
parent 6358528438
commit 662ca0152f
3 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
[selected]="selectedKey?.layerId === index"
[keyboardLayout]="keyboardLayout"
[description]="description"
[showDescription]="true"
(keyClick)="keyClick.emit($event)"
(keyHover)="keyHover.emit($event)"
(capture)="capture.emit($event)"

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 809 B

View File

@@ -14,6 +14,7 @@
(capture)="onCapture(i, $event.index, $event.captured)"
/>
</svg>
<editable-text [ngModel]="description"
<editable-text *ngIf="showDescription"
[ngModel]="description"
(ngModelChange)="descriptionChanged.emit($event)"
placeholder="No description provided for this keymap."></editable-text>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -32,6 +32,7 @@ export class SvgKeyboardComponent implements OnInit {
@Input() halvesSplit: boolean;
@Input() keyboardLayout = KeyboardLayout.ANSI;
@Input() description: string;
@Input() showDescription = false;
@Output() keyClick = new EventEmitter();
@Output() keyHover = new EventEmitter();
@Output() capture = new EventEmitter();