Skip to content

Commit b8dbcf1

Browse files
committed
截屏 长截屏按键检测不节流
1 parent 667eda5 commit b8dbcf1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: src/renderer/clip/clip_window.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -847,11 +847,7 @@ function startLong() {
847847
uIOhook = require("uiohook-napi").uIOhook;
848848
uIOhook.start();
849849
uIOhook.on("keyup", () => {
850-
const n = new Date().getTime();
851-
if (n - lastLong > 400) {
852-
lastLong = n;
853-
long_s();
854-
}
850+
long_s();
855851
});
856852
uIOhook.on("wheel", () => {
857853
const n = new Date().getTime();

0 commit comments

Comments
 (0)