MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / checkMouseHotkey

Function checkMouseHotkey

entrypoints/content.ts:173–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172 // 检查是否匹配鼠标悬浮快捷键
173 const checkMouseHotkey = () => {
174 const hotkeyParts = getConfiguredMouseHotkeyParts();
175 if (hotkeyParts.length === 0) return false;
176
177 const allKeysPressed = hotkeyParts.every(key => mouseHotkeysPressed.has(key));
178 const exactMatch = allKeysPressed && hotkeyParts.length === mouseHotkeysPressed.size;
179
180 return exactMatch;
181 };
182
183 // 1. 失去焦点时
184 window.addEventListener('blur', () => {

Callers 1

Calls 1

Tested by

no test coverage detected