except AttributeError: pass
else:
reg = pt.application.key_bindings_registry
- bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg)
+ try: bind = reg.add_binding
+ except AttributeError: bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg)
def inhibit_history_search(buf, fn):
searchp, searchtext = buf.enable_history_search, buf.history_search_text