feat: display OS-specific modifiers (#764)
* chore: git ignore "out-tsc/" folder in uhk-web package * feat: add OperationSystem calculation to the app reducer * feat: create os specific key modifier * feat: Os specific texts * revert: KeyModifierValues and getKeyModifiers selector * refactor: remove unnecessary return * refactor: rename OperationSystem => OperatingSystem
This commit is contained in:
committed by
László Monda
parent
aba0b09109
commit
3e4d439852
@@ -29,8 +29,18 @@ export class KeypressTabComponent extends Tab implements OnChanges {
|
||||
|
||||
constructor(private mapper: MapperService) {
|
||||
super();
|
||||
this.leftModifiers = ['LShift', 'LCtrl', 'LSuper', 'LAlt'];
|
||||
this.rightModifiers = ['RShift', 'RCtrl', 'RSuper', 'RAlt'];
|
||||
this.leftModifiers = [
|
||||
'LShift',
|
||||
'LCtrl',
|
||||
mapper.getOsSpecificText('LSuper'),
|
||||
mapper.getOsSpecificText('LAlt')
|
||||
];
|
||||
this.rightModifiers = [
|
||||
'RShift',
|
||||
'RCtrl',
|
||||
mapper.getOsSpecificText('RSuper'),
|
||||
mapper.getOsSpecificText('RAlt')
|
||||
];
|
||||
this.scanCodeGroups = [{
|
||||
id: '0',
|
||||
text: 'None'
|
||||
|
||||
Reference in New Issue
Block a user