private void URLBox_LeftClick(object sender, MouseButtonEventArgs me) { if (me.ChangedButton == MouseButton.Left) { URLBox.SelectAll(); } }
void ReleaseDesignerOutlets() { if (URLBox != null) { URLBox.Dispose(); URLBox = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }
partial void Load(NSObject sender) { if (URLBox.StringValue == string.Empty) { return; } if (URLBox.SelectedIndex < 0) { AppDelegate.URLList.Add(URLBox.StringValue); URLBox.ReloadData(); } AppDelegate.Instance.MainWindowController.Load(URLBox.StringValue); }
//Method override for shortcuts not linked to menu items protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == (Keys.Alt | Keys.Right)) { wb.Forward(); return(true); } else if (keyData == (Keys.Alt | Keys.Left)) { wb.Backward(); return(true); } else if (keyData == (Keys.Alt | Keys.D)) { URLBox.Focus(); return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }
private void URLBox_KeyDown(object sender, KeyEventArgs e) { if (Keyboard.IsKeyDown(Key.Enter)) { Navigate(URLBox.Text); } if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.A)) { URLBox.SelectAll(); } if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.C)) { URLBox.Copy(); } if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.V)) { URLBox.Paste(); } }
private void URLBox_Click(object sender, EventArgs e) { URLBox.Clear(); }
private void URLBox_TextChanged(object sender, EventArgs e) { URLBox.Clear(); }