fix(keymap): Don't show keymap description in the key action popover (#572)
This commit is contained in:
committed by
László Monda
parent
6358528438
commit
662ca0152f
@@ -8,6 +8,7 @@
|
|||||||
[selected]="selectedKey?.layerId === index"
|
[selected]="selectedKey?.layerId === index"
|
||||||
[keyboardLayout]="keyboardLayout"
|
[keyboardLayout]="keyboardLayout"
|
||||||
[description]="description"
|
[description]="description"
|
||||||
|
[showDescription]="true"
|
||||||
(keyClick)="keyClick.emit($event)"
|
(keyClick)="keyClick.emit($event)"
|
||||||
(keyHover)="keyHover.emit($event)"
|
(keyHover)="keyHover.emit($event)"
|
||||||
(capture)="capture.emit($event)"
|
(capture)="capture.emit($event)"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 770 B After Width: | Height: | Size: 809 B |
@@ -14,6 +14,7 @@
|
|||||||
(capture)="onCapture(i, $event.index, $event.captured)"
|
(capture)="onCapture(i, $event.index, $event.captured)"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
<editable-text [ngModel]="description"
|
<editable-text *ngIf="showDescription"
|
||||||
|
[ngModel]="description"
|
||||||
(ngModelChange)="descriptionChanged.emit($event)"
|
(ngModelChange)="descriptionChanged.emit($event)"
|
||||||
placeholder="No description provided for this keymap."></editable-text>
|
placeholder="No description provided for this keymap."></editable-text>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -32,6 +32,7 @@ export class SvgKeyboardComponent implements OnInit {
|
|||||||
@Input() halvesSplit: boolean;
|
@Input() halvesSplit: boolean;
|
||||||
@Input() keyboardLayout = KeyboardLayout.ANSI;
|
@Input() keyboardLayout = KeyboardLayout.ANSI;
|
||||||
@Input() description: string;
|
@Input() description: string;
|
||||||
|
@Input() showDescription = false;
|
||||||
@Output() keyClick = new EventEmitter();
|
@Output() keyClick = new EventEmitter();
|
||||||
@Output() keyHover = new EventEmitter();
|
@Output() keyHover = new EventEmitter();
|
||||||
@Output() capture = new EventEmitter();
|
@Output() capture = new EventEmitter();
|
||||||
|
|||||||
Reference in New Issue
Block a user