Example #1
0
 public virtual void OnShiftReleased(VirtualKey releasedShiftKey)
 {
     foreach (VirtualKey shiftKey in shiftKeys)
     {
         if (shiftKey.isActivated != releasedShiftKey.isActivated)
         {
             shiftKey.ToggleActivate();
         }
     }
     if (capsLockKey.isActivated)
     {
         capsLockKey.ToggleActivate();
         return;
     }
     foreach (VirtualKey key in keys)
     {
         if (key.text.text == key.normalText)
         {
             key.text.text = key.alternateText;
         }
         else
         {
             key.text.text = key.normalText;
         }
     }
 }