public void Stop() { buttonToggleAssign.Content = "Assign"; isRecording = false; _ActiveKeybind = null; KeybindUpdated?.Invoke(this, ContextKeybind); }
private void Input_subscriptions_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { Dispatcher.Invoke( () => { if (this.Equals(_ActiveKeybind)) { System.Windows.Forms.Keys[] _PressedKeys = Global.input_subscriptions.PressedKeys; if (ContextKeybind != null) { ContextKeybind.SetKeys(_PressedKeys); textBoxKeybind.Text = ContextKeybind.ToString(); KeybindUpdated?.Invoke(this, ContextKeybind); } else textBoxKeybind.Text = "ERROR (No KeybindProperty set)"; } }); }