private void InitHotkeys() { // remove conflicting hotkeys from scintilla scintilla1.ClearCmdKey(Keys.Control | Keys.F); scintilla1.ClearCmdKey(Keys.Control | Keys.R); scintilla1.ClearCmdKey(Keys.Control | Keys.H); scintilla1.ClearCmdKey(Keys.Control | Keys.L); scintilla1.ClearCmdKey(Keys.Control | Keys.U); scintilla1.KeyDown += KeyDown; scintilla1.MouseDwellTime = 100; scintilla1.DwellStart += DwellStart; scintilla1.MouseClick += MouseClick; scintilla1.MouseMove += MouseMove; }
private void InitHotkeys() { // register the hotkeys with the form HotKeyManager.AddHotKey(this, OpenSearch, Keys.F, true); HotKeyManager.AddHotKey(this, OpenFindDialog, Keys.F, true, false, true); HotKeyManager.AddHotKey(this, OpenReplaceDialog, Keys.R, true); HotKeyManager.AddHotKey(this, OpenReplaceDialog, Keys.H, true); HotKeyManager.AddHotKey(this, Uppercase, Keys.U, true); HotKeyManager.AddHotKey(this, Lowercase, Keys.L, true); HotKeyManager.AddHotKey(this, ZoomIn, Keys.Oemplus, true); HotKeyManager.AddHotKey(this, ZoomOut, Keys.OemMinus, true); HotKeyManager.AddHotKey(this, ZoomDefault, Keys.D0, true); HotKeyManager.AddHotKey(this, CloseSearch, Keys.Escape); // remove conflicting hotkeys from scintilla _textArea.ClearCmdKey(Keys.Control | Keys.F); _textArea.ClearCmdKey(Keys.Control | Keys.R); _textArea.ClearCmdKey(Keys.Control | Keys.H); _textArea.ClearCmdKey(Keys.Control | Keys.L); _textArea.ClearCmdKey(Keys.Control | Keys.U); }
private void ClearHotkeys() { // remove conflicting hotkeys from scintilla TextArea.ClearCmdKey(Keys.Control | Keys.F); TextArea.ClearCmdKey(Keys.Control | Keys.R); TextArea.ClearCmdKey(Keys.Control | Keys.H); TextArea.ClearCmdKey(Keys.Control | Keys.L); TextArea.ClearCmdKey(Keys.Control | Keys.U); TextArea.ClearCmdKey(Keys.Control | Keys.K); TextArea.ClearCmdKey(Keys.Control | Keys.S); TextArea.ClearCmdKey(Keys.Control | Keys.D); TextArea.ClearCmdKey(Keys.Control | Keys.G); TextArea.ClearCmdKey(Keys.Control | Keys.B); TextArea.ClearCmdKey(Keys.Control | Keys.N); }
private void InitHotkeys() { // register the hotkeys with the form HotKeyManager.AddHotKey(this, Uppercase, Keys.U, true); HotKeyManager.AddHotKey(this, Lowercase, Keys.L, true); HotKeyManager.AddHotKey(this, ZoomIn, Keys.Oemplus, true); HotKeyManager.AddHotKey(this, ZoomOut, Keys.OemMinus, true); HotKeyManager.AddHotKey(this, ZoomDefault, Keys.O, true); HotKeyManager.AddHotKey(this, newFileCommand, Keys.N, true); HotKeyManager.AddHotKey(this, saveCommand, Keys.S, true); //HotKeyManager.AddHotKey(this, InitHelpForm, Keys.F1, true); HotKeyManager.AddHotKey(this, Undo1, Keys.Z, true); HotKeyManager.AddHotKey(this, Redo1, Keys.Y, true); HotKeyManager.AddHotKey(this, copyCommand, Keys.C, true); HotKeyManager.AddHotKey(this, cutCommand, Keys.X, true); HotKeyManager.AddHotKey(this, pasteCommand, Keys.V, true); // remove conflicting hotkeys from scintilla TextArea.ClearCmdKey(Keys.Control | Keys.F); TextArea.ClearCmdKey(Keys.Control | Keys.R); TextArea.ClearCmdKey(Keys.Control | Keys.H); TextArea.ClearCmdKey(Keys.Control | Keys.L); TextArea.ClearCmdKey(Keys.Control | Keys.U); TextArea.ClearCmdKey(Keys.Control | Keys.N); TextArea.ClearCmdKey(Keys.Control | Keys.S); TextArea.ClearCmdKey(Keys.Control | Keys.F1); TextArea.ClearCmdKey(Keys.Control | Keys.C); TextArea.ClearCmdKey(Keys.Control | Keys.X); TextArea.ClearCmdKey(Keys.Control | Keys.V); TextArea.ClearCmdKey(Keys.Control | Keys.Z); TextArea.ClearCmdKey(Keys.Control | Keys.Y); TextArea.ClearCmdKey(Keys.Control | Keys.O); //for open file TextArea.ClearCmdKey(Keys.Control | Keys.P); }