David Flanagan wrote: > > Anyway, it looks like a bug to me. > > An XXE bug? A Java[tm] bug? Not easy to fix this one... > > Since I was able to use keyPressed with other unmodified keys without > getting an insertion when binding them to non-insertion commands, I'd > say that it is an XXE bug. But I don't know anything about the internal > architecture, so maybe it is a Java bug...
"keyPressed with no modifiers" works fine when the command does not display a dialog box. > ======================== > PS: You should remove: > > --- > <command name="prompt" parameter='XREF "Enter xref ID:"'/> > --- > > in order to give a try to: > > --- > <command name="putAttribute" parameter="linkend"/> > --- > > I tried this, but choose not to do it for two reasons: > > 1) The dialog that pops up to allow a choice of IDs doesn't allow me to > select one with the mouse. If it included an (automatically focused) > input field with auto-completion, I'd love it. (I guess this is an > RFE). I don't want to take my hands off the keyboard, so I prefered > the prompt command solution > > 2) I'd like to be able to insert inter-chapter xrefs without having to > formally group all the chapter files together into a book file, and > the dialog presented by putAttribute restricts me to selecting an ID > that is already defined in the current chapter. Two very good reasons.

