Eduardo J. G. Mercovich wrote:
>>>[... editado ...] a good idea to add a keyboard shortcut to
>>>collapse/expand. [... editado ...]
>
>
>>Unfortunately, this is not simple to implement. (More precisely, we
>>have not yet found a way to implement it.)
>
>
> OK, I got it. :-)
> I'm sure you will find a way, at it's proper time.
>
We have *already* found a way to collapse/expand sections using keyboard
shortcuts.
* Please download XXE V2.5p3;
* add the following bindings to your C:\Documents and
Settings\<user>\xxe2\config\customize.xxe (~/.xxe2/config/customize.xxe
on Unix);
* type "Esc" then "-" in a DocBook document for example.
---
<!-- =================================================================
Commands related to collapsible views (styled or not)
Esc / collapses nearest collapsible view if it is expanded and
expands nearest collapsible view if it is collapsed.
Esc + expands nearest collapsible view and then, recursively
expands all its collapsible descendant views.
Esc - collapses nearest collapsible view and then, recursively
collapses all its collapsible descendant views.
Esc 0 is equivalent to Esc - followed by Esc /.
Very useful just after you open a large document
to see its outline.
The ``nearest collapsible view'' is searched like this:
* Search starts at explicitly selected node if any; otherwise at
node containing caret.
* If this node is an element and has a collapsible view, search is
completed: this view is the ``nearest collapsible view''.
* Otherwise search continues with the parent of the node.
================================================================== -->
<binding>
<keyPressed code="ESCAPE" />
<charTyped char="/" />
<command name="toggleCollapsed" />
</binding>
<binding>
<keyPressed code="ESCAPE" />
<charTyped char="+" />
<command name="toggleCollapsed" parameter="expandAll" />
</binding>
<binding>
<keyPressed code="ESCAPE" />
<charTyped char="-" />
<command name="toggleCollapsed" parameter="collapseAll" />
</binding>
<binding>
<keyPressed code="ESCAPE" />
<charTyped char="0" />
<command name="toggleCollapsed" parameter="collapseAll+expand" />
</binding>
---