On Sat, Dec 29, 2001 at 06:19:33PM +0100, Herbert Voss wrote: ... > To: Martin Vermeer <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED] > Subject: Re: circumflex > > Martin Vermeer wrote: > > > In other words... it should be configurable! (it is today in the > > bind files, only not easily.) > > > sure, but at first there should be the same behaviour > in lyx for all parts. As I wrote it's different between > insets like url's and the standard text. > > Herbert > > > > -- > http://www.lyx.org/help/
Hmmm, that's not the same thing... the URL inset is a xforms widget and text is handled by the text entry box logic, not by LyX. LyX text itself is handled a character at a time, and that is what the bind files configure. If that really is what you want, then the behaviour of the LyX bindings for text entry is completely prescribed (I wonder if that has ever been precisely the case in LyX?). Anyway, here is a patch that will do just that. Personally I find the required prefix M-m for sub/superscript a PITA. Martin -- Martin Vermeer [EMAIL PROTECTED] Helsinki University of Technology Department of Surveying P.O. Box 1200, FIN-02015 HUT, Finland :wq
Index: lyx_main.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/lyx_main.C,v retrieving revision 1.99 diff -u -p -r1.99 lyx_main.C --- lyx_main.C 2001/12/18 03:30:35 1.99 +++ lyx_main.C 2001/12/29 20:35:16 @@ -519,9 +519,14 @@ void LyX::defaultKeyBindings(kb_keymap kbmap->bind("BackSpace", LFUN_BACKSPACE); // sub- and superscript -MV - kbmap->bind("~S-underscore", LFUN_SUBSCRIPT); - kbmap->bind("~S-asciicircum", LFUN_SUPERSCRIPT); - + kbmap->bind("M-m ~S-underscore", LFUN_SUBSCRIPT); + kbmap->bind("M-m ~S-dead_circumflex", LFUN_SUPERSCRIPT); + kbmap->bind("M-m ~S-asciicircum", LFUN_SUPERSCRIPT); + // define chars to be escaped + //kbmap->bind("~S-at ~S-at", LFUN_SELFINSERT); + kbmap->bind("~S-underscore", LFUN_SELFINSERT); + kbmap->bind("~S-asciicircum", LFUN_SELFINSERT); + // kbmap->bindings to enable the use of the numeric keypad // e.g. Num Lock set //kbmap->bind("KP_0", LFUN_SELFINSERT);
msg30812/pgp00000.pgp
Description: PGP signature