Oops, I realized I sent this only to Andre instead of to the entire list.
---------- Forwarded message ---------- From: Stephen Hartke Date: May 29, 2007 3:14 PM Subject: Re: Effect of Certain Keys in Math Mode To: Andre Poenitz On 5/29/07, Stephen Hartke <[EMAIL PROTECTED]> wrote:
> However, it would be > > simple to configure this if separate LFUNs could be specificed for > keys > > depending on whether one is currently in math mode or not. >
Glancing through the code, there seems like two (at least) ways of implementing this: 1. In the bind files, have a third optional parameter that is the action in math mode. The key map code then needs to keep an additional table for actions inside math mode. This seems like a somewhat substantial change to the code, but at least would preserve people's current bind files. 2. Math mode is considered an additional modifier like Shift or Alt. Then the current bind file/key map code could be retained, and only minor modifications would be need to made. However, I don't really grok the way all the pieces of the LyX code fit together (it's an impressively huge piece of work), so I don't know if what I'm proposing would be an easy fix or not. For instance, I don't know if setting the "math mode" modifier is easy to do from code outside of the key handlers. Best wishes, Stephen