public Release ( Keys key ) : void | ||
key | Keys | The virtual key to release. |
return | void |
public virtual void Release(Keys key)
{
// Create the tuple
var tuple = Tuple.Create(Window.Handle, key);
// If the key is pressed with an interval
if (PressedKeys.Contains(tuple))
PressedKeys.Remove(tuple);
}
#endregion