MV window.prompt versus Graphics._requestFullScreen() problem...

Some time ago I posted my plugin to use cheats in MV game. It would be at least strange to ask for help with plugin I wrote by myself, but I noticed strange bug, glitch, I don't know how to call it... Anyway, the problem is, when I call window.prompt() method game is going from full screen to window mode and that kind of error is unacceptable if my game will be commercial...

So... I wrote simple function thinking it will solve the problem, but I was wrong...

Code:
Cheat.prototype.setFullScreen = function(){
    if (Graphics._isFullScreen()){
        Graphics._requestFullScreen();
    }   
}

I've added that function for each cheat I implemented in script and game won't go to full screen again... Then I edited package.json file setting "fullscreen": true and that practically solves problem, but when I enter to game options to toggle between full screen and window mode, game stubbornly remains in full screen.

What to do, to keep game option to switch between window mode and full screen and still be able to use window.prompt() method without problems?
Why not just make a custom window inside rpg maker? Makes it potentially more useful for mobile too, because the prompts suck.
@Poryg Hmm... I never thought about it... I could use RS_InputText plugin to do so, but umm...
Huh, now I don't know what to say... But there is one thing that could cause me some problems, because there is at least one cheat that can be used only inside a battle and I'm not sure I could call window during all available actions in battle, if I would start to write code to display window based on Window_Base (or something else) I've got to make sure player can open that window regardless of what's going on screen right now.
What's the big deal? You can have a cheat menu scene in your plugin. Simply make a menu entry that calls this scene, similarly to skill menus and other menus.
@Poryg - That's great idea! MV indeed allows to call any scene during any action in battle! But there is one flaw I need to concider - if skill or item is beign used, calling new scene cancel out the skill / item usage. And one more thing prevents me from doing it - does MV in it's window's classes has some type of keyboard input instead number input (event)?

Window_Selectable would do the trick - I don't remember, but in some AAA game I saw something similar - list of cheats and player could choose which cheats to use.

Hah! I could do something similar in Yanfly's Option Core plugin.
Why call it during any action in battle?
Simply add it as a menu entry.
"Attack"
"Spell"
"Cheat"
This cheat menu entry opens a cheat menu scene that you can use with both battle and map. You'd use SceneManager._stack[0].constructor to determine the type of the scene.
And no, no window allows for input. But it isn't that difficult to make one.
Because there is one cheat that calls BattleManager.processVictory(). - A cheat to instantly win current battle.
I wonder... Would
Code:
if (SceneManager._stack[0].constructor == Scene_Battle) {
SceneManager.popScene();
BattleManager.processVictory();
}
do the trick?

Original thread: https://forums.rpgmakerweb.com/threads/window-prompt-versus-graphics-_requestfullscreen-problem.142379/