Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
daa1ccc6
Commit
daa1ccc6
authored
Feb 24, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
热键设置 bug修复
parent
0cb7ff64
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
VIZ.Package.Domain/ApplicationDomainEx.cs
+5
-0
VIZ.Package.Module/Main/Controller/HotkeyController.cs
+3
-0
VIZ.Package.Module/Setting/Core/View/SettingWindow.xaml.cs
+12
-0
No files found.
VIZ.Package.Domain/ApplicationDomainEx.cs
View file @
daa1ccc6
...
@@ -144,6 +144,11 @@ namespace VIZ.Package.Domain
...
@@ -144,6 +144,11 @@ namespace VIZ.Package.Domain
public
static
bool
IsSceneLoading
{
get
;
set
;
}
public
static
bool
IsSceneLoading
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 是否正在设置热键
/// </summary>
public
static
bool
IsHotkeySetting
{
get
;
set
;
}
/// <summary>
/// 场景信息列表
/// 场景信息列表
/// </summary>
/// </summary>
/// <remarks>
/// <remarks>
...
...
VIZ.Package.Module/Main/Controller/HotkeyController.cs
View file @
daa1ccc6
...
@@ -36,6 +36,9 @@ namespace VIZ.Package.Module
...
@@ -36,6 +36,9 @@ namespace VIZ.Package.Module
/// <param name="key">热键</param>
/// <param name="key">热键</param>
public
void
BeginExecute
(
string
key
)
public
void
BeginExecute
(
string
key
)
{
{
if
(
ApplicationDomainEx
.
IsHotkeySetting
)
return
;
if
(
string
.
IsNullOrWhiteSpace
(
key
))
if
(
string
.
IsNullOrWhiteSpace
(
key
))
return
;
return
;
...
...
VIZ.Package.Module/Setting/Core/View/SettingWindow.xaml.cs
View file @
daa1ccc6
...
@@ -12,6 +12,7 @@ using System.Windows.Media;
...
@@ -12,6 +12,7 @@ using System.Windows.Media;
using
System.Windows.Media.Imaging
;
using
System.Windows.Media.Imaging
;
using
System.Windows.Shapes
;
using
System.Windows.Shapes
;
using
VIZ.Framework.Core
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
namespace
VIZ.Package.Module
namespace
VIZ.Package.Module
{
{
...
@@ -25,6 +26,17 @@ namespace VIZ.Package.Module
...
@@ -25,6 +26,17 @@ namespace VIZ.Package.Module
InitializeComponent
();
InitializeComponent
();
WPFHelper
.
BindingViewModel
(
this
,
new
SettingWindowModel
());
WPFHelper
.
BindingViewModel
(
this
,
new
SettingWindowModel
());
// 当前处于热键设置状态
ApplicationDomainEx
.
IsHotkeySetting
=
true
;
this
.
Closed
+=
SettingWindow_Closed
;
}
private
void
SettingWindow_Closed
(
object
sender
,
EventArgs
e
)
{
// 关闭当前热键设置状态
ApplicationDomainEx
.
IsHotkeySetting
=
false
;
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment