diff options
| author | Alee14 <alee14498@gmail.com> | 2017-05-08 21:38:36 -0400 |
|---|---|---|
| committer | Alee14 <alee14498@gmail.com> | 2017-05-08 21:38:36 -0400 |
| commit | 1afa1110bc63b13a64b00066a3c2cc71b8a35c7f (patch) | |
| tree | 2acf2b4a18c94a1fd7a5d06783650599edf11d92 /AleeBrowser/Form1.cs | |
| parent | 36867384aad002932fc3f4edd59f097e72ab344a (diff) | |
| download | AleeBrowser-WinForms-1afa1110bc63b13a64b00066a3c2cc71b8a35c7f.tar.gz AleeBrowser-WinForms-1afa1110bc63b13a64b00066a3c2cc71b8a35c7f.tar.bz2 AleeBrowser-WinForms-1afa1110bc63b13a64b00066a3c2cc71b8a35c7f.zip | |
New Shortcut!
Diffstat (limited to 'AleeBrowser/Form1.cs')
| -rw-r--r-- | AleeBrowser/Form1.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/AleeBrowser/Form1.cs b/AleeBrowser/Form1.cs index 7ac4232..7cba9de 100644 --- a/AleeBrowser/Form1.cs +++ b/AleeBrowser/Form1.cs @@ -39,7 +39,19 @@ namespace AleeBrowser private void button3_Click(object sender, EventArgs e) { + NavigateToPage(); + } + private void NavigateToPage() + { webBrowser1.Navigate(textBox1.Text); + } + private void textBox1_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar == (char)ConsoleKey.Enter) + { + NavigateToPage(); + } } + } }
\ No newline at end of file |
