And can we disable it?
(Sorry, I can't search for an answer because F5 is too short as a keyword..)
(Sorry, I can't search for an answer because F5 is too short as a keyword..)
You can override all keyboard and mouse functions. Not all functions can be overridden easily since some some functions are different from the Mac and Windows. Like it would be a terrible idea to disable exit shortcuts.
SceneManager.onKeyDown = function(event) { if (!event.ctrlKey && !event.altKey) { switch (event.keyCode) { case 116: // F5 if (Utils.isNwjs()) { location.reload(); } break; case 119: // F8 if (Utils.isNwjs() && Utils.isOptionValid('test')) { require('nw.gui').Window.get().showDevTools(); } break; } }};
Both ways would work.
Original thread: https://forums.rpgmakerweb.com/threads/what-does-f5-do.52235/