mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
26 lines
379 B
TypeScript
26 lines
379 B
TypeScript
/**
|
|
* Various focus helpers.
|
|
*
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
/**
|
|
* Moves focus to the BYOND map window.
|
|
*/
|
|
export const focusMap = () => {
|
|
Byond.winset('mapwindow.map', {
|
|
focus: true,
|
|
});
|
|
};
|
|
|
|
/**
|
|
* Moves focus to the browser window.
|
|
*/
|
|
export const focusWindow = () => {
|
|
Byond.winset(Byond.windowId, {
|
|
focus: true,
|
|
});
|
|
};
|