[Feat] Screen Lock overrides & Move Aura Settings to pref page

This commit is contained in:
Minoricew
2025-06-03 02:11:39 +08:00
parent a86d13431b
commit fbc5cf1f57
20 changed files with 1807 additions and 67 deletions

View File

@@ -0,0 +1,17 @@
const hookFn = (central, appIns, browserWindowIns) => {
const __config = global.__HUGO_AURA_CONFIG__.rewrite["vendor/screenLock"];
const removeKeyboardHook = () => {
const { dllForHookBoard } = central(29);
setTimeout(() => {
dllForHookBoard.UnHookKeyBoard();
}, 1000);
};
if (__config.disableKeyboardHook) {
removeKeyboardHook();
}
};
module.exports = { hookFunc: hookFn };