Core/ Input Escape Manager
InputEscapeManager is a static class that manages escape actions in a stack-like manner. It allows pushing, popping, and executing registered escape actions. This system ensures that only the most recent escape action is executed when triggered.
UIViewActionEscape uses InputEscapeManager. While Luna UI uses this to exit from UIViews, it can also be used for other purposes beyond UI.
Public Methods
Push
You can push an action onto the escape stack, optionally providing a unique key and an insertion index.
Popping an Escape Action
Pops and executes the most recent escape action.
Blocking Escape Execution
Temporarily block escape actions from executing