I am trying to modify a couple of the default menu accelerators in XXE and
am running into problems. From reading the mailing list archives, it appears
this is one area of XXE that has evolved quite a bit over the past few major
releases.

Specifically, I want to modify the accelerators for Window > Show Preceding
and Window > Show Following (Ctrl-Shift-P, Ctrl-Shift-F in default.xxe_gui),
so that they are triggered by Ctrl+Shift+Tab and Ctrl+Tab, respectively.

Here is the code I have used in my custom.xxe_gui file:

<?xml version='1.0' encoding='UTF-8'?>
<gui xmlns="http://www.xmlmind.com/xmleditor/schema/gui";
     xmlns:gui="http://www.xmlmind.com/xmleditor/schema/gui";>
  <include location="xxe-gui:app/default.xxe_gui" />
  <action name="precedingWindowAction" label="Show _Preceding"
          accelerator="mod shift TAB">
    <class>com.xmlmind.xmleditapp.app.part.PrecedingWindowAction</class>
  </action>
  <action name="followingWindowAction" label="Show _Following"
          accelerator="mod TAB">
    <class>com.xmlmind.xmleditapp.app.part.FollowingWindowAction</class>
  </action>
  <layout>
    <insert/>
  </layout>
</gui>

Unfortunately, this does not have the desired effect. Here's what I'm
seeing:

*       Although the Window > Show Preceding menu item does display the
correct accelerator (Ctrl+Shift+Tab), typing Ctrl+Shift+Tab does not trigger
this action.
*       Apparently because a default binding exists for Ctrl+Tab to the
insertControlCharacter command, Window > Show Following loses its
accelerator -- no accelerator key is displayed in the menu item.

Here are my questions:

*       Why does the Ctrl+Shift+Tab not work as an accelerator key for
Window > Show Preceding?
*       Is it possible to override a default binding with a menu
accelerator?

Thanks in advance,
 SitePoint logo <http://www.sitepoint.com/images/sitepoint-logo.gif> 

Kevin Yank
Technical Director

SitePoint Pty. Ltd.
e: kevin at sitepoint.com
w: http://www.sitepoint.com/
p: +61 3 9419-5200

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060426/b240014b/attachment.htm
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1164 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060426/b240014b/attachment.gif
 

Reply via email to