private void URLBox_LeftClick(object sender, MouseButtonEventArgs me)
 {
     if (me.ChangedButton == MouseButton.Left)
     {
         URLBox.SelectAll();
     }
 }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (URLBox != null)
            {
                URLBox.Dispose();
                URLBox = null;
            }

            if (StatusLabel != null)
            {
                StatusLabel.Dispose();
                StatusLabel = null;
            }
        }
Example #3
0
        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);
        }
Example #4
0
 //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();
     }
 }
Example #6
0
 private void URLBox_Click(object sender, EventArgs e)
 {
     URLBox.Clear();
 }
Example #7
0
 private void URLBox_TextChanged(object sender, EventArgs e)
 {
     URLBox.Clear();
 }