Skip to content

Commit

Permalink
added enter on textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
dephea committed Dec 20, 2021
1 parent cab7276 commit 71e0b3a
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public Form1()
Browser1.AddressChanged += Browser1_AddressChanged;
Browser1.TitleChanged += Browser1_TitleChanged;
textBox1.Click += textBox1_Click;
textBox1.KeyDown += textBox1_KeyDown;

//tabControl1.Click += TabControl1_Click;
}
Expand Down Expand Up @@ -145,5 +146,15 @@ private void Form1_Load(object sender, EventArgs e)
{

}

private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
button5_Click(this, new EventArgs());

e.SuppressKeyPress = true;
}
}
}
}
48 changes: 42 additions & 6 deletions dephBrowser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<AutorunEnabled>true</AutorunEnabled>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -38,13 +55,19 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>D98365A9835F6DE0EF4443D08758C4718D2CDEF0</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>dephBrowser_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference Include="Awesomium.Core, Version=1.7.5.0, Culture=neutral, PublicKeyToken=e1a0d7c8071a5214, processorArchitecture=x86">
<HintPath>packages\Awesomium.Windows.Forms.Unofficial.1.7.5.0\lib\Awesomium.Core.dll</HintPath>
</Reference>
<Reference Include="Awesomium.Windows.Forms, Version=1.7.5.0, Culture=neutral, PublicKeyToken=9bd24830fbe304a0, processorArchitecture=x86">
<HintPath>packages\Awesomium.Windows.Forms.Unofficial.1.7.5.0\lib\Awesomium.Windows.Forms.dll</HintPath>
</Reference>
<Reference Include="CefSharp, Version=96.0.142.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
<HintPath>packages\CefSharp.Common.96.0.142\lib\net452\CefSharp.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -87,6 +110,7 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="dephBrowser_TemporaryKey.pfx" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand All @@ -101,6 +125,18 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions dephBrowser.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A822E89-677D-4EC7-924C-4A9F4CF1E78C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A822E89-677D-4EC7-924C-4A9F4CF1E78C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A822E89-677D-4EC7-924C-4A9F4CF1E78C}.Debug|Any CPU.ActiveCfg = Release|Any CPU
{2A822E89-677D-4EC7-924C-4A9F4CF1E78C}.Debug|Any CPU.Build.0 = Release|Any CPU
{2A822E89-677D-4EC7-924C-4A9F4CF1E78C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A822E89-677D-4EC7-924C-4A9F4CF1E78C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
Expand Down

0 comments on commit 71e0b3a

Please sign in to comment.