예제 #1
0
 private void HandleCapsLockKeyPressed(ModifierKeyBase capsLockKey)
 {
     _allLogicalKeys
     .OfType <CaseSensitiveKey>()
     .ToList()
     .ForEach(x => x.SelectedIndex = capsLockKey.IsInEffect ^ KeyboardService.IsKeyDownAsync(VirtualKeyCode.SHIFT) ? 1 : 0);
 }
예제 #2
0
 private void HandleNumLockKeyPressed(ModifierKeyBase numLockKey)
 {
     _allLogicalKeys
     .OfType <NumLockSensitiveKey>()
     .ToList()
     .ForEach(x => x.SelectedIndex = numLockKey.IsInEffect ? 1 : 0);
 }
예제 #3
0
 private void HandleShiftKeyPressed(ModifierKeyBase shiftKey)
 {
     _allLogicalKeys
     .OfType <CaseSensitiveKey>()
     .ToList()
     .ForEach(x => x.SelectedIndex = KeyboardService.IsTogglingKeyInEffect(VirtualKeyCode.CAPITAL) ^ shiftKey.IsInEffect ? 1 : 0);
     _allLogicalKeys
     .OfType <ShiftSensitiveKey>()
     .ToList()
     .ForEach(x => x.SelectedIndex = shiftKey.IsInEffect ? 1 : 0);
 }