ENGLISH
Press Esc in File Explorer to close the current window. The mod avoids accidental closure when:
Optional:
How it works
A low-level keyboard hook detects VK_ESCAPE within explorer.exe.
If the focused control is safe (not text editing, not renaming), it sends WM_CLOSE to the current Explorer window.
中文说明
在资源管理器中按下 Esc 可关闭当前窗口。 模块会避免误关以下场景:
可选项:
实现原理
在 explorer.exe 内部安装低级键盘钩子,监听 Esc。
若判断当前焦点处于安全状态,则向窗口发送 WM_CLOSE。