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:
committed by
László Monda
parent
4aae62e3a7
commit
9e69098ad2
@@ -103,6 +103,8 @@ export class KeypressTabComponent extends Tab implements OnChanges {
|
|||||||
// Restore secondaryRoleAction
|
// Restore secondaryRoleAction
|
||||||
if (keystrokeAction.secondaryRoleAction !== undefined) {
|
if (keystrokeAction.secondaryRoleAction !== undefined) {
|
||||||
this.selectedSecondaryRoleIndex = this.mapper.modifierMapper(keystrokeAction.secondaryRoleAction);
|
this.selectedSecondaryRoleIndex = this.mapper.modifierMapper(keystrokeAction.secondaryRoleAction);
|
||||||
|
} else {
|
||||||
|
this.selectedSecondaryRoleIndex = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user