Files
CHOMPStation2/tgui/packages/tgui_ch/focus.ts
2023-05-23 17:43:01 +02:00

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,
});
};