Disable Cancel Button

How can I disable the cancel button?


I am using the "Select Item" event command. However, if the player deselects here / presses the cancel button, I'd run into problems. I can run a conditional branch that checks for the cancel button being pressed and jump to another label to work around the problem, but if I can temporarily disable the cancel button, that'd be muchhhh better.
there is an easier way to detect that - set the variable used in the select command to zero before the command, if it is still zero after it then the command was cancelled - there is no item with the ID zero.
there is an easier way to detect that - set the variable used in the select command to zero before the command, if it is still zero after it then the command was cancelled - there is no item with the ID zero.


Thank you! That would be much safer. I was worried if the player can press the cancel button so quickly the conditional branch check misses the input.
However, is it possible to disable the cancel button all-together?

Original thread: https://forums.rpgmakerweb.com/threads/disable-cancel-button.66393/