feat(renderer): show icon when possible even if the keystroke action has modifier (#533)

Closes #513
This commit is contained in:
József Farkas
2017-12-26 23:23:32 +01:00
committed by László Monda
parent 721a4dc6e7
commit 5ceca41e0f
3 changed files with 24 additions and 13 deletions

View File

@@ -71,7 +71,11 @@ export class MapperService {
default:
return undefined;
}
return 'assets/compiled_sprite.svg#' + map.get(scanCode);
const id = map.get(scanCode);
if (!id) {
return undefined;
}
return `assets/compiled_sprite.svg#${id}`;
}
public getIcon(iconName: string): string {