On Monday, September 17, 2012 8:02:09 AM UTC-5, Edward K. Ream wrote: > With these improvements, the essentials of the screencast plugin are complete.
Rev 5446 completes the essentials of the plugin with a brilliant hack, if I do say so myself. Instead of just having m.state_handler just ignore all keys except LtArrow, RtArrow, Escape (and Ctrl-g which k.masterKeyHandler honors), the state handler will pass them along to m.single_key (which passes them along to k.masterKeyhandler) *provided* that the screencast is in the midst of simulating *another* key state. (provided m.k_state.kind is neither empty nor 'screencast'.) For example, suppose the screencast has done an Alt-X to open the minibuffer. Now, if you type anything except LtArrow, RtArrow, Escape or Ctrl-g, the character will be sent to the minibuffer(!!!). This allows a presenter to go "off script". But the presenter is still executing a screencast as usual, so the arrow keys still control the screencast. The motivation for this trick came from experiments with the LtArrow (undo) key, which now accurately shows the previous slide's captions and images. However, there is *no way* for the undo logic to handle what the previous slide might have put into the minibuffer. But with this excellent hack, the presenter can "correct" the contents of the minibuffer (or anything else) after doing the undo. If people find this hack confusing, it can always be disabled. However, I have already fallen in love with it, and I think you may too. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/Sc-yVxvrG9YJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
