MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / forceFocus

Method forceFocus

lib/modAssist_window_lib.js:490–495  ·  view source on GitHub ↗

* Force a window to be focused * @param {string} name window

(name)

Source from the content-addressed store, hash-verified

488 * @param {string} name window
489 */
490 forceFocus (name) {
491 if ( this.isValid(name) ) {
492 this.win[name].show()
493 this.win[name].focus()
494 }
495 }
496
497 /**
498 * Raise or create the named window, run the callback on completion

Callers 2

modAssist_main.jsFile · 0.80
raiseOrOpenMethod · 0.80

Calls 2

isValidMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected