按住 ctrl+w,会连续关闭页面。而且 ctrl+shift+w 会关闭全部页面,
方法的一,这叫做 quick keystroke repeat,可在设置中关闭。
关闭方法:win 搜索 repeat,进入键盘设置,开启 use filter keys,这样就能禁用连击了。
方法二:可以用 ahk实现
^+W::
return
global tmpclicked := 0
#IfWinActive ahk_exe chrome.exe
^W::
if(tmpclicked=0) {
tmpclicked:=1
Hotkey, IfWinActive, ahk_exe chrome.exe
Hotkey ^W, Off
; Send ^{W}
SendInput ^w
Hotkey ^W, On
}
return
$^W up::
tmpclicked:=0
return