Changed: re-enable hotkeys

This commit is contained in:
Ray 2021-07-23 02:29:34 +01:00
parent 639152e3e4
commit e441034c9f
5 changed files with 8 additions and 92 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
/.vs
/bin
/obj
*.user
*.pubxml.user
*.csproj.user

View File

@ -1,69 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ShowAllFiles>false</ShowAllFiles>
<_LastSelectedProfileId>L:\gitlab-hiimray\fizzy-launcher\Properties\PublishProfiles\Release x86.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="MainForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\Forms\THorizontalSeparator.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\Forms\TImageBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\Forms\TUserControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TButton.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TextBox\TButtonTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TDialogForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TextBox\TFolderTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TListBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TextBox\TOpenFileTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\PickerBox\TPickerBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TextBox\TTextBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\TUserControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="RyzStudio\Windows\ThemedForms\PickerBox\TYesNoPickerBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="OptionsForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Windows\Forms\EditTileFolderForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Windows\Forms\EditTileForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Windows\Forms\EditGroupForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Windows\Forms\TilePanel.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Windows\Forms\TilePanelLayout.cs">
<SubType>UserControl</SubType>
</Compile>
</ItemGroup>
</Project>

View File

@ -123,7 +123,7 @@ namespace FizzyLauncher
{
if (this.CurrentSession.HotKey.KeyCode != Keys.None)
{
// UnregisterHotKey((IntPtr)Handle, 1);
UnregisterHotKey((IntPtr)Handle, 1);
}
}
@ -193,12 +193,12 @@ namespace FizzyLauncher
{
this.Invoke(new MethodInvoker(() =>
{
// UnregisterHotKey((IntPtr)Handle, 1);
UnregisterHotKey((IntPtr)Handle, 1);
}));
}
else
{
// UnregisterHotKey((IntPtr)Handle, 1);
UnregisterHotKey((IntPtr)Handle, 1);
}
if (this.CurrentSession.HotKey != null)
@ -209,12 +209,12 @@ namespace FizzyLauncher
{
this.Invoke(new MethodInvoker(() =>
{
// RegisterHotKey((IntPtr)Handle, 1, this.CurrentSession.HotKey.ModifierCode, this.CurrentSession.HotKey.Key);
RegisterHotKey((IntPtr)Handle, 1, this.CurrentSession.HotKey.ModifierCode, this.CurrentSession.HotKey.Key);
}));
}
else
{
// RegisterHotKey((IntPtr)Handle, 1, this.CurrentSession.HotKey.ModifierCode, this.CurrentSession.HotKey.Key);
RegisterHotKey((IntPtr)Handle, 1, this.CurrentSession.HotKey.ModifierCode, this.CurrentSession.HotKey.Key);
}
}
}

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2021-07-23T00:58:59.4046567Z;</History>
</PropertyGroup>
</Project>

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2021-07-23T00:59:33.9680448Z;True|2021-07-23T01:52:28.5639205+01:00;True|2021-07-23T01:49:36.9865426+01:00;True|2021-07-23T01:48:31.0435665+01:00;</History>
</PropertyGroup>
</Project>