feat: keep current selected layer when changing keymap (#714)

This commit is contained in:
Róbert Kiss
2018-07-05 23:58:44 +02:00
committed by László Monda
parent 15df8d7129
commit 648e8d5f2c

View File

@@ -131,7 +131,6 @@ export class SvgKeyboardWrapComponent implements OnInit, OnChanges {
this.layers = this.keymap.layers;
if (keymapChanges.isFirstChange() ||
keymapChanges.previousValue.abbreviation !== keymapChanges.currentValue.abbreviation) {
this.currentLayer = 0;
this.keybindAnimationEnabled = keymapChanges.isFirstChange();
} else {
this.keybindAnimationEnabled = true;