Rev <https://github.com/leo-editor/leo-editor/issues/327>24da84a 
<https://github.com/leo-editor/leo-editor/commit/24da84a6eb7773044f679e46a1ee8acf69af1367>
 
completes #327: Create a way to unbind bindings in leoSettings.leo 
<https://github.com/leo-editor/leo-editor/issues/327>.

The new code is relatively straightforward.  See the comments at the end of 
#327 <https://github.com/leo-editor/leo-editor/issues/327> for details.  
Please report any problems immediately. In particular, the new code should 
have no effect on user-defined mode bindings.

*Discussion*

This enhancement allows you to override bindings made in leoSettings.leo or 
myLeoSettings.leo by setting:

    command-name = None

in the *local .leo file*, that is, outside of leoSettings.leo or 
myLeoSettings.leo.* Important*: binding:

    do-nothing = <key>

does not work.  That would eat <key> entirely.  Instead, the new code calls 
k.handleUnboundKeys when it sees any key previously bound to command-name.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to