This is AWESOME! - it makes all the simple key combinations available for custom defs (I was jealous of Leo claiming so many ctl-<key> codes, too lazy to learn ctl-alt-<key>)
- they take effect with only a save and revert, no need to close and open A great day for Leo customization. Thanks, Kent On Mon, Jan 30, 2012 at 9:37 AM, Edward K. Ream <[email protected]> wrote: > On Jan 30, 7:29 am, "Edward K. Ream" <[email protected]> wrote: > >> Ref 4952 of the trunk fixes bug 87933: >> "Redefining a key binding breaks menu items with same binding" >> >> This was a difficult bug to fix--I rewrote significant parts of Leo's >> code that deals with settings for key binding. > > I am now in the midst of some long-overdue simplification that has > been made possible with the new code: > > 1. Leo now (provably) no longer uses the very complex g.app.config.get/ > set code for shortcuts. > > 2. The new k.kill_one_shortcut allows k.registerCommand to properly > override settings. For example, File:New is no longer bound to Ctrl-N > when the following becomes active:: > > @button test @key=Ctrl-N > > k.kill_one_shortcut uses the invert/uninvert trick used in > merge_settings_dict. Only this kind of elegant code has a chance of > working reliably. > > 3. As mentioned in another thread, k.tkbindingFromStroke is about to > make its exit. > > 4. I'll be making several other simplifications to the config code in > the next several days. It is important to do it now while all the > complexities are fresh in my mind. > > When all this work is done, it will be time to consider releasing Leo > 4.10 b1. After that goes out the door I'll fix several other high- > priority bugs before b2. > > 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. > -- 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.
