mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-24 01:44:28 +08:00
[Feat] Screen Lock overrides & Move Aura Settings to pref page
This commit is contained in:
17
src/aura/mainProcess/hooks/screenLock.js
Executable file
17
src/aura/mainProcess/hooks/screenLock.js
Executable 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 };
|
||||
Reference in New Issue
Block a user