From 648e8d5f2ca00851274b2b870aeb6d7933046398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Thu, 5 Jul 2018 23:58:44 +0200 Subject: [PATCH] feat: keep current selected layer when changing keymap (#714) --- .../src/app/components/svg/wrap/svg-keyboard-wrap.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/uhk-web/src/app/components/svg/wrap/svg-keyboard-wrap.component.ts b/packages/uhk-web/src/app/components/svg/wrap/svg-keyboard-wrap.component.ts index e4663679..7b020409 100644 --- a/packages/uhk-web/src/app/components/svg/wrap/svg-keyboard-wrap.component.ts +++ b/packages/uhk-web/src/app/components/svg/wrap/svg-keyboard-wrap.component.ts @@ -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;