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 }
This commit is contained in:
Róbert Kiss
2017-11-12 15:11:01 +01:00
committed by László Monda
parent 4aae62e3a7
commit 9e69098ad2

View File

@@ -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;