def toggleExpandState ():
""" Toggle the expand state of the current node
"""
trace = False and not g.unitTesting
# c = self; p = c.p
# set up the functions to call
if p.isExpanded():
fa = p.contract
frd = c.redraw_after_contract
else:
fa = p.expand
frd = c.redraw_after_expand
# perform the calls
fa()
if p.isCloned():
# if trace: g.trace('***redraw')
c.redraw()
else:
# frd(p,setFocus=True)
frd(p)
toggleExpandState()
A couple of minor observations/questions.1) Alt+] is mapped to 'expand node' by default. Any reason why Alt+[ is not mapped to 'contract-node' by default?