Dear Leo Developer,If I have a node with 5 subnodes, the child #1 is focused, I clicked SHIFT-DOWN, child #1 and child #2 will swap position. Is there an event for the position swap?
def command1_handler(tag, keys):
c = keys.get('c')
p = keys.get('p')
print(f"command1: {c.command_name:>30} {p and p.h}")
g.registerHandler('command1', command1_handler)Would you please share me where I can find of Leo code for moving node UP and DOWN for reference?
--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/9550fb79-bbdf-4306-b840-4b1f72ce136e%40googlegroups.com.