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
7e06c328
Commit
7e06c328
authored
Feb 24, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快捷键
parent
da028ffb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
VIZ.Package.Module/Main/ViewModel/MainViewModel.cs
+8
-4
No files found.
VIZ.Package.Module/Main/ViewModel/MainViewModel.cs
View file @
7e06c328
...
@@ -72,10 +72,13 @@ namespace VIZ.Package.Module
...
@@ -72,10 +72,13 @@ namespace VIZ.Package.Module
private
void
InitHotkey
()
private
void
InitHotkey
()
{
{
// 注册键盘钩子
// 注册键盘钩子
this
.
KeyboardMouseEvents
=
Hook
.
Global
Events
();
this
.
KeyboardMouseEvents
=
Hook
.
App
Events
();
this
.
KeyboardMouseEvents
.
KeyDown
-=
KeyboardMouseEvents_KeyDown
;
//this.KeyboardMouseEvents.KeyDown -= KeyboardMouseEvents_KeyDown;
this
.
KeyboardMouseEvents
.
KeyDown
+=
KeyboardMouseEvents_KeyDown
;
//this.KeyboardMouseEvents.KeyDown += KeyboardMouseEvents_KeyDown;
this
.
KeyboardMouseEvents
.
KeyUp
-=
KeyboardMouseEvents_KeyUp
;
this
.
KeyboardMouseEvents
.
KeyUp
+=
KeyboardMouseEvents_KeyUp
;
}
}
// ============================================================
// ============================================================
...
@@ -295,7 +298,7 @@ namespace VIZ.Package.Module
...
@@ -295,7 +298,7 @@ namespace VIZ.Package.Module
/// <summary>
/// <summary>
/// 键盘钩子事件
/// 键盘钩子事件
/// </summary>
/// </summary>
private
void
KeyboardMouseEvents_Key
Down
(
object
sender
,
System
.
Windows
.
Forms
.
KeyEventArgs
e
)
private
void
KeyboardMouseEvents_Key
Up
(
object
sender
,
System
.
Windows
.
Forms
.
KeyEventArgs
e
)
{
{
try
try
{
{
...
@@ -308,5 +311,6 @@ namespace VIZ.Package.Module
...
@@ -308,5 +311,6 @@ namespace VIZ.Package.Module
log
.
Error
(
ex
);
log
.
Error
(
ex
);
}
}
}
}
}
}
}
}
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