Hi Hussein,

Ok, here it is; I created a key binding a while ago that wraps selected text in 
a set of markers that designates it as either being the name of a register or a 
system message. During publishings these are turned automatically into links to 
the definitions of the registers/messages.

<binding>
<keyPressedcode="ENTER"/>
<keyPressedcode="M"/>
<commandname="pmc.wrapMessage"/>
</binding>

<binding>
<keyPressedcode="ENTER"/>
<keyPressedcode="R"/>
<commandname="pmc.wrapRegister"/>
</binding>
 
Clearly I'm going to have to bind those to some other keys.
 
I could have sworn I'd already tried removing those, because they seemed 
suspect when the problem first appeared. Apparently not. It's what I get for 
doing too many things at once.
 
Cheers,
Jeff.


----- Original Message ----
> From: Hussein Shafie <[email protected]>
> To: Jeff Hooker <[email protected]>
> Cc: "[email protected]" <[email protected]>
> Sent: Tue, April 20, 2010 12:58:45 AM
> Subject: Re: [XXE] Docbook programlisting element presentation
> 
> Jeff Hooker wrote:
> 
> Yep, can insert a new programlisting 
> element, can add characters to it, but can't create a new line. Would if I 
> could 
> have accidentally bound the Enter key to something...hmmmmm. In the Mouse and 
> Keyboard Bindings list, Enter displays as 
> Enter  
> db5.splitOrInsertNewLine  
> which looks right to me. If that was 
> being overridden by something, it would show up in this interface, 
> correct?
> 

Correct.

However, even when ENTER is bound to 
> db5.splitOrInsertNewLine, if the
programlisting is not styled using CSS 
> property "white-space:pre;",
you'll not be able to type newline characters in 
> it.

I've commented out "white-space:pre;" in the stock DocBook 
> CSS
stylesheet and after that, everything looks and works OK, except that 
> I
cannot type newline characters in a 
> programlisting.







--
XMLmind XML Editor Support 
> List
> href="mailto:[email protected]";>[email protected]
> href="http://www.xmlmind.com/mailman/listinfo/xmleditor-support"; 
> target=_blank 
> >http://www.xmlmind.com/mailman/listinfo/xmleditor-support
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to