Update 'mbchc-dev.user.js'

BCE IM support
This commit is contained in:
Mute 2022-07-20 08:14:32 +00:00
parent b99e28502b
commit 29e9d84ceb

View File

@ -649,7 +649,7 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER
}) })
window.MBCHC.sdk.hookFunction("DocumentKeyDown", 0, (nextargs, next) => { window.MBCHC.sdk.hookFunction("DocumentKeyDown", 0, (nextargs, next) => {
let [event] = nextargs let [event] = nextargs
if ("InputChat" === document.activeElement.id) return(next(nextargs)) if ("InputChat" === document.activeElement.id || "bce-message-input" === document.activeElement.id) return(next(nextargs))
if ("inline" === document.getElementById("InputChat")?.style.display) window.ElementFocus("InputChat") if ("inline" === document.getElementById("InputChat")?.style.display) window.ElementFocus("InputChat")
return(next(nextargs)) return(next(nextargs))
}) })