#pragma warning restore IDE0032 // Use auto property #pragma warning restore IDE0044 // Add readonly modifier /// <summary> /// Initializes a new instance of the <see cref="KeyEventArgs"/> class. /// </summary> /// <param name="key">The key that was pressed.</param> /// <param name="extension">The extension key that was pressed.</param> /// <param name="modifier">The single modifier that was pressed</param> /// <param name="modifiers">The multiple modifier keys that were pressed.</param> /// <param name="up">Whether the key was released or not.</param> public KeyEventArgs(char key, ExtensionKey extension, ModifierKey modifier, ModifierKey modifiers, bool up) { this.key = key; this.extension = extension; this.modifier = modifier; this.modifiers = modifiers; this.up = up; }
/// <summary> /// Initializes a new instance of the <see cref="KeyEventArgs"/> class. /// </summary> /// <param name="key">The key that was pressed.</param> /// <param name="ext">The extension key that was pressed.</param> /// <param name="modifier">The single modifier that was pressed</param> /// <param name="modifiers">The modifier keys that were pressed.</param> /// <param name="up">Whether the key was released or not.</param> public KeyEventArgs(string key, ExtensionKey ext, ModifierKey modifier, ModifierKey modifiers, bool up) { Key = key; Extension = ext; Modifier = modifier; Modifiers = modifiers; Up = up; }
/// <summary> /// Initializes a new instance of the <see cref="KeyEventArgs"/> class. /// </summary> /// <param name="key">The key that was pressed.</param> /// <param name="extension">The extension key that was pressed.</param> /// <param name="modifier">The single modifier that was pressed</param> /// <param name="modifiers">The multiple modifier keys that were pressed.</param> /// <param name="up">Whether the key was released or not.</param> public KeyEventArgs(char key, ExtensionKey extension, ModifierKey modifier, ModifierKey modifiers, bool up) => uiAreaKeyEvent = new Libui.uiAreaKeyEvent()