From 9e69098ad23dbc45ebaec234c34465de1e0b32dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Sun, 12 Nov 2017 15:11:01 +0100 Subject: [PATCH] fix(keymap): Secondary role show 'None' value if not set (#496) * fix(keymaps): Secondary role show 'None' value if not set * style: move else in the same line with the close if } --- .../components/popover/tab/keypress/keypress-tab.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/uhk-web/src/app/components/popover/tab/keypress/keypress-tab.component.ts b/packages/uhk-web/src/app/components/popover/tab/keypress/keypress-tab.component.ts index 74064391..17dabf73 100644 --- a/packages/uhk-web/src/app/components/popover/tab/keypress/keypress-tab.component.ts +++ b/packages/uhk-web/src/app/components/popover/tab/keypress/keypress-tab.component.ts @@ -103,6 +103,8 @@ export class KeypressTabComponent extends Tab implements OnChanges { // Restore secondaryRoleAction if (keystrokeAction.secondaryRoleAction !== undefined) { this.selectedSecondaryRoleIndex = this.mapper.modifierMapper(keystrokeAction.secondaryRoleAction); + } else { + this.selectedSecondaryRoleIndex = -1; } return true;