Skip to content

Commit

Permalink
fix: 修复暂停的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lrhh123 committed Jul 4, 2024
1 parent d8ea046 commit 09d6958
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main/backend/services/dispatchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,10 @@ export class DispatchService {
public registerHandlers(socket: socketIo.Socket): void {
socket.on('messageService-broadcast', async (msg: any, callback) => {
const { event, data } = msg;
if (event === 'mouse_move') {
const change = await this.configController.moveMouseHandler();
if (change) {
this.receiveBroadcast({
event: 'has_paused',
data: {},
});
}
} else if (event === 'key_esc') {
if (event === 'key_esc') {
const change = await this.configController.escKeyDowHandler();
if (change) {
this.syncConfig();
this.receiveBroadcast({
event: 'has_paused',
data: {},
Expand Down

0 comments on commit 09d6958

Please sign in to comment.