On Thu, Oct 20, 2011 at 3:04 PM, Edward K. Ream <[email protected]> wrote:
> It looks like getShortcut is going to have to work harder. Exploring the code has turned up something truly bad: the !kill "pane". Presumably, !kill is supposed to kill conflicting bindings, but it's just hopeless: we can't assume people are going to remember to use !kill bindings: the code must kill conflicting bindings automatically. And anyway, !kill doesn't seem to work. The solution will be to create an internal table in the configClass object associated with each commander. This table will tell contain the proper command to be associated with each key binding. getShortcut will then simply access this table. Creating this table will be a trick: in effect, the init code must kill old bindings as new ones appear. However, having each commander have its own table means that we don't have to worry about tromping on default settings. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. 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.
