feat(renderer): show icon when possible even if the keystroke action has modifier (#533)
Closes #513
This commit is contained in:
committed by
László Monda
parent
721a4dc6e7
commit
5ceca41e0f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user