Let's now re-imagine our existing features as a set of events:
We will add two new methods to the
_emit(). They are merely shorthand for the
mpl_connect() command and the recently introduced
process() method. In the constructor, we will connect some methods to the events we have just listed. In the case of the help method and the storm saving method, the methods originally supplied to the keymap will be connected to these two new events, and the keymap will instead merely call
_emit() of the respective events. This can give a taste of fully customizable keymaps in the future. Meanwhile, this is what our ...