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:
Róbert Kiss
2018-09-03 00:21:55 +02:00
committed by László Monda
parent aba0b09109
commit 3e4d439852
10 changed files with 130 additions and 27 deletions

View File

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