Skip to content

Commit d27038c

Browse files
authored
fix(cli): keyboard shortcuts stop working after server restart (#2444)
1 parent 9d30081 commit d27038c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/slidev/node/cli.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,6 @@ cli.command(
295295
}
296296

297297
process.stdin.on('keypress', onKeyPress)
298-
server?.httpServer?.on('close', () => {
299-
process.stdin.off('keypress', onKeyPress)
300-
})
301298
}
302299

303300
const { roots } = await initServer()

0 commit comments

Comments
 (0)