private void web_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.F5) { e.IsInputKey = true; } }
private void textbox1_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (e.KeyValue.Equals(Key.Down) || e.KeyValue.Equals(Key.Left) || e.KeyValue.Equals(Key.Right) || e.KeyValue.Equals(Key.Up)) { e.IsInputKey = true; } }
void cMenu_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.Back) { cMenu.Close(); } }
protected override void OnPreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs e) { if ((e.KeyData == System.Windows.Forms.Keys.Up) || (e.KeyData == System.Windows.Forms.Keys.Down)) { e.IsInputKey = true; } base.OnPreviewKeyDown(e); }
private void schedulerControl_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (e.Control && e.KeyCode == System.Windows.Forms.Keys.E) { searchControl1.Focus(); e.IsInputKey = false; } }
protected override void OnPreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs e) { System.Diagnostics.Trace.WriteLine(String.Format("PreviewKeyDown: KeyValue: {0}, KeyCode: {1}, KeyData: {2}", e.KeyValue, e.KeyCode, e.KeyData)); if (e.Alt && (e.KeyCode == System.Windows.Forms.Keys.X)) { ConvertNumberToChar(false); } base.OnPreviewKeyDown(e); }
private void Comment_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { switch (e.KeyCode) { case System.Windows.Forms.Keys.Enter: ApplySettings(); break; } ; }
private void Browser_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { // Forces the terminal to capture the shortcut instead of sending it to VS if (e.Control && (e.KeyCode == System.Windows.Forms.Keys.P || e.KeyCode == System.Windows.Forms.Keys.O || e.KeyCode == System.Windows.Forms.Keys.Tab)) { e.IsInputKey = true; } else { e.IsInputKey = false; } }
protected override void OnPreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs e) { switch (e.KeyData) { case System.Windows.Forms.Keys.Up: case System.Windows.Forms.Keys.Down: case System.Windows.Forms.Keys.Left: case System.Windows.Forms.Keys.Right: e.IsInputKey = true; break; } }
private void stringEdit_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { var edit = sender as LargeStringEdit; if (e.KeyCode == System.Windows.Forms.Keys.Tab) { lastSelectionStart = edit.SelectionStart; edit.Text = edit.Text.Insert(edit.SelectionStart, "\t"); tabPressed = true; } else { tabPressed = false; } }
public static void WindowForm_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.F4) { EV3Brick.GetEV3Brick.Compile_PreviewMouseLeftButtonDown(null, null); } else if (e.KeyCode == System.Windows.Forms.Keys.F5) { EV3Brick.GetEV3Brick.CompileAndRun_PreviewMouseLeftButtonDown(null, null); } else if (e.KeyCode == System.Windows.Forms.Keys.F6) { EV3Brick.GetEV3Brick.BrickStop_PreviewMouseLeftButtonDown(null, null); } }
private void WebBrowser_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { try { if (sender is System.Windows.Forms.WebBrowser) { var browser = sender as System.Windows.Forms.WebBrowser; if (e.KeyCode == System.Windows.Forms.Keys.Escape) { browser.Stop(); } else if (e.KeyCode == System.Windows.Forms.Keys.F5) { //browser.Refresh(); } else if (e.Control && e.KeyCode == System.Windows.Forms.Keys.C) { var text = browser.GetText(); Commands.CopyText.Execute(text); } else if (e.Shift && e.KeyCode == System.Windows.Forms.Keys.C) { var html = browser.GetText(true).Trim(); var text = browser.GetText(false).Trim(); var data = new HtmlTextData() { Html = html, Text = text }; Commands.CopyText.Execute(data); //browser.Document.ExecCommand("Copy", false, text); } else if (e.Control && e.KeyCode == System.Windows.Forms.Keys.V) { var text = Clipboard.GetText(); browser.Document.ExecCommand("Paste", false, text); } else if (e.Control && e.KeyCode == System.Windows.Forms.Keys.A) { browser.Document.ExecCommand("SelectAll", false, null); } } } #if DEBUG catch (Exception ex) { ex.Message.ShowMessageBox("ERROR[BROWSER]"); } #else catch (Exception ex) { ex.ERROR(); } #endif }
private void VisualEditor_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (!handled) { if (e.KeyCode == System.Windows.Forms.Keys.Enter && e.Modifiers == System.Windows.Forms.Keys.Shift) { htmldoc.ExecuteCommand("Paste", false, Environment.NewLine); handled = true; } else if (e.KeyCode == System.Windows.Forms.Keys.Enter && e.Modifiers == System.Windows.Forms.Keys.None) { htmldoc.ExecuteCommand("InsertParagraph", false, null); handled = true; } } else { handled = false; } }
protected override void OnPreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs e) { base.OnPreviewKeyDown(e); if (DroppedDown) { switch (e.KeyCode) { case System.Windows.Forms.Keys.Escape: _sendSic = true; break; case System.Windows.Forms.Keys.Tab: case System.Windows.Forms.Keys.Enter: if (DropDownStyle == System.Windows.Forms.ComboBoxStyle.DropDown) { _sendSic = true; } break; } } }
private void txt_formInputCommand_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { }
static void PanelControle_OnPreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { System.Windows.Forms.Keys tecla = e.KeyCode; }
private void UcOrderInfo_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { }
private void Button2_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { throw new System.NotImplementedException(); }
void FormRegion1_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { System.Windows.Forms.MessageBox.Show("Test"); }
private void HandlePreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { ProcessKeyEvent(e.KeyCode, RaiseKeyPressed); }
private void OnPreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { e.IsInputKey = true; }
private void Browser_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { // Forces the terminal to capture the shortcut instead of sending it to VS e.IsInputKey = false; }
public override bool HandlePreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs e) { return(true); }
//Forms - Hotkeys that work when TextArea has focus private void Window_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { if (e.KeyCode == System.Windows.Forms.Keys.F5 && e.Modifiers == System.Windows.Forms.Keys.None) { Run(); } else if (e.KeyCode == System.Windows.Forms.Keys.F5 && e.Modifiers == System.Windows.Forms.Keys.Shift) { Kill(); } else if (e.KeyCode == System.Windows.Forms.Keys.F6 && e.Modifiers == System.Windows.Forms.Keys.None) { Debug(true); } else if (e.KeyCode == System.Windows.Forms.Keys.F6 && e.Modifiers == System.Windows.Forms.Keys.Shift) { Stop(); } else if (e.KeyCode == System.Windows.Forms.Keys.F9 && e.Modifiers == System.Windows.Forms.Keys.None) { ToggleBP(); } else if (e.KeyCode == System.Windows.Forms.Keys.F10 && e.Modifiers == System.Windows.Forms.Keys.None) { StepOver(); } else if (e.KeyCode == System.Windows.Forms.Keys.F11 && e.Modifiers == System.Windows.Forms.Keys.None) { Step(); } else if (e.KeyCode == System.Windows.Forms.Keys.F && e.Modifiers == System.Windows.Forms.Keys.Control) { OpenFindDialog(); } else if (e.KeyCode == System.Windows.Forms.Keys.N && e.Modifiers == System.Windows.Forms.Keys.Control) { AddDocument(); } else if (e.KeyCode == System.Windows.Forms.Keys.O && e.Modifiers == System.Windows.Forms.Keys.Control) { MarkedForHotKey.Enqueue(FileOpen); } else if (e.KeyCode == System.Windows.Forms.Keys.S && e.Modifiers == System.Windows.Forms.Keys.Control) { MarkedForHotKey.Enqueue(FileSave); } else if (e.KeyCode == System.Windows.Forms.Keys.S && e.Modifiers == (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)) { // Prints an s for some reason MarkedForHotKey.Enqueue(Publish); } else if (e.KeyCode == System.Windows.Forms.Keys.O && e.Modifiers == (System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)) { MarkedForHotKey.Enqueue(Import); } else if (e.KeyCode == System.Windows.Forms.Keys.H && e.Modifiers == System.Windows.Forms.Keys.Control) { OpenReplaceDialog(); } else if (e.KeyCode == System.Windows.Forms.Keys.F3 && e.Modifiers == System.Windows.Forms.Keys.None) { FindNext(); } else if (e.KeyCode == System.Windows.Forms.Keys.F3 && e.Modifiers == System.Windows.Forms.Keys.Shift) { FindPrevious(); } }
public override void PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { //throw new NotImplementedException(); }
void editSource_PreviewKeyDown(object sender, System.Windows.Forms.PreviewKeyDownEventArgs e) { UpdateStatusInfo(); }