Re: about LyX shortcuts

2010-11-09 Thread Guenter Milde
On 2010-11-09, Pavel Sanda wrote: > zhaoyunsong wrote: >> I am writting to ask if I can define shortcuts that works only in math >> mode. > no. but there has been already such request. > hmm thinking more, we have command-alternative, which ends up in > the first successfull lfun. So, for

Re: about LyX shortcuts

2010-11-08 Thread Pavel Sanda
Pavel Sanda wrote: > this shouldn't easyfix for some newcomer dev... ;) should be > > pavel

Re: about LyX shortcuts

2010-11-08 Thread Pavel Sanda
Pavel Sanda wrote: > this noop lfun could generalized so different environment could be added as > argument > one argument for negation and we have quite powerful hacking machinery without > touching additional code at all ;) or less trickier: LFUN_CONTEXT_TRIGGER [!] ENVI_TYPE LFUN_CALL this sh

Re: about LyX shortcuts

2010-11-08 Thread Pavel Sanda
zhaoyunsong wrote: > I am writting to ask if I can define shortcuts that works only in math mode. no. but there has been already such request. hmm thinking more, we have command-alternative, which ends up in the first successfull lfun. so now only some noop lfun returning true in standard en

about LyX shortcuts

2010-11-08 Thread zhaoyunsong
I am writting to ask if I can define shortcuts that works only in math mode. Or if I can define the same shortcuts for different operations that works in different environment. for example: I want the shortcut "Ctrl+F" to open the "find dialog" in text mode while to insert a fraction in "math m