feat: keep current selected layer when changing keymap (#714)
This commit is contained in:
committed by
László Monda
parent
15df8d7129
commit
648e8d5f2c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user