Skip to content

Commit 09d6958

Browse files
author
lrhh123
committed
fix: 修复暂停的问题
1 parent d8ea046 commit 09d6958

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/main/backend/services/dispatchService.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,10 @@ export class DispatchService {
3232
public registerHandlers(socket: socketIo.Socket): void {
3333
socket.on('messageService-broadcast', async (msg: any, callback) => {
3434
const { event, data } = msg;
35-
if (event === 'mouse_move') {
36-
const change = await this.configController.moveMouseHandler();
37-
if (change) {
38-
this.receiveBroadcast({
39-
event: 'has_paused',
40-
data: {},
41-
});
42-
}
43-
} else if (event === 'key_esc') {
35+
if (event === 'key_esc') {
4436
const change = await this.configController.escKeyDowHandler();
4537
if (change) {
38+
this.syncConfig();
4639
this.receiveBroadcast({
4740
event: 'has_paused',
4841
data: {},

0 commit comments

Comments
 (0)