如何在 Windows 7 的 Chrome 上禁用 Ctrl+Shift+W

Reb*_*lle 32 keyboard-shortcuts google-chrome

我只是不小心再次按下了 Ctrl+Shift+W 并丢失了一些工作。我喜欢对单个窗口使用 CTRL+W,但我从不想关闭所有内容。有没有办法在 Chrome 上禁用它?

Raj*_*Raj 21

iglvzx 的答案不适用于较新版本的AutoHotKey (AHK)。以下是使用较新的 AHK 版本执行此操作的方法:

SetTitleMatchMode, Regex

#IfWinActive, ahk_class Chrome_WidgetWin_1
    ^+w::
        ;do nothing
        return
    ^+q::
        ;do nothing
        return

#IfWinActive
Run Code Online (Sandbox Code Playgroud)

这也可以防止Ctrl+Shift+Q退出所有 Chrome。


igl*_*vzx 9

您可以使用AutoHotkey拦截键盘快捷键:

SetTitleMatchMode, Regex

#IfWinActive, (- Google Chrome)$
    ^+w::
        ;do nothing
        return

#IfWinActive
Run Code Online (Sandbox Code Playgroud)