private void changeShortcuts_Click(object sender, EventArgs e) { try { var hotkey = new FastColoredTextBoxNS.HotkeysEditorForm( Interactivity.codes.codeTextBox.HotkeysMapping); if (hotkey.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Interactivity.codes.codeTextBox.HotkeysMapping = hotkey.GetHotkeys(); } hotkey.Dispose(); } catch { } }