-
I'm trying to require confirmation from the user before performing an action - an "Are you sure? Y/N" style dialog. I can't seem to find a way to ignore/unbind other key bindings to force an answer before continuing. Am I going about this the wrong way or am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK, have learned a lot. Was able to do this by managing a stack of bindings and pushing and popping bindings from the stack based on the current dialog or menu. This worked very well with not just modal dialogs, but a cascading menu system. POC code is here if anyone is trying do do similar: https://github.com/jspv/spotbot |
Beta Was this translation helpful? Give feedback.
OK, have learned a lot. Was able to do this by managing a stack of bindings and pushing and popping bindings from the stack based on the current dialog or menu. This worked very well with not just modal dialogs, but a cascading menu system. POC code is here if anyone is trying do do similar: https://github.com/jspv/spotbot