KcdMp.blur
Gives the keyboard and the mouse cursor back to the game.
The frame gives up what it holds: the game’s keys and mouse work again. The page’s script calls it itself when the
player presses Esc, unless the page’s own key handler kept the key with preventDefault().
Syntax
Section titled “Syntax”await KcdMp.blur()Returns
Section titled “Returns”Promise<void> - settles when the game has answered
Example
Section titled “Example”document.querySelector("#close").addEventListener("click", () => KcdMp.blur());See also
Section titled “See also”KcdMp.focus · the Focus and visibility group of the index
