>>>>> "Yann" == Yann Collete <[EMAIL PROTECTED]> writes:

Yann> Hello, I've a problem with the Meta key. I use an Unix Emulator
Yann> (Exceed) and a french keyboard. For this keyboard, the meta key
Yann> is binded to the escape key (it works fine under xemacs). Under
Yann> Lyx, I use the emacs binding (which redefine the meta key as the
Yann> escape key). It works fine (I can insert an equation using Esc-m
Yann> m). But when I am under math editor, if I want to insert an
Yann> exponent (Esc-m e) or an index (Esc-m i), when I press the Esc
Yann> key, I leave the math editor. So, I think the binding (Meta =
Yann> Esc) is not working under the math editor. How can I do to have
Yann> the meta binding working correctly under the math editor ?

Unfortunately, the locking insets (like math) explicitely exit on
escape (which is a very bad idea IMO). You can try to remove this
"feature" by commenting out the following code (around line 176 if
src/lyxfunc.C): 

        if (owner->view()->available()) {
                // this function should be used always [asierra060396]
                UpdatableInset * tli = owner->view()->theLockingInset();
                if (tli && (keysym == XK_Escape)) {
                        if (tli == tli->GetLockingInset()) {
                                owner->view()->unlockInset(tli);
                                owner->view()->text->CursorRight(owner->view());
                                moveCursorUpdate(false);
                                owner->showState();
                        } else {
                                tli->UnlockInsetInInset(owner->view(),
                                                        tli->GetLockingInset(),tr
ue);
                        }
                        //return 0;
                        return FL_PREEMPT;
                }
        }


JMarc

Reply via email to