From: Pavel Sanda <[email protected]>
>
> Jim Oldfield wrote:
> > > > seem to work, and when I reopen the preferences dialog the mapping
> > > > has
> > > > disappeared.
> > >
> > > this "ctrl+enter" appears in keybinding dialog if you hit your main
> > >enter+ctrl?
> >
> > That's correct.
>
> and is it specific to this key? (i mean if you try to bind completely
>different
> key and lfuns, does this disappearing repeat?)
Binding a different key (such as ctrl+G) to this function ("newline-insert
newline") works fine. Actually that is a workaround of sorts for me, thanks.
I played around a bit and there is some very strange behaviour associated with
numeric enter and keybindings. Do you think it is worth raising a bug about?
It doesn't seem very important to me (apart from to me personally), but
perhaps
it could be a symptom of an underlying problem?
Example of strange keybinding behaviour: in LyX 2.0, trying to rebind the
unmodified key (which actually has an existing behaviour) causes it to behave
like the modified enter. This appears in the user.bind file:
\unbind "KP_Enter" "break-paragraph"
\bind "^M" "paste" (the single character represented as ^M in VIM)
Changing the "^M" to "KP_Enter" while LyX is shut does not fix it.
The default behaviour is strange too: In LyX 2.0 and 1.6.8, ctrl+enter by
default inserts a what looks like a space in LyX and is actually a new
paragraph
in the LaTeX source. You can have multiple in a row. When you save/close/reopen
the document they are turned into paragraph breaks, and multiple in a row are
collapsed to one. Any other combination of modifiers and enter (except no
modifiers) has the same effect in 1.6.8, and in LyX 2.0.0 has the same effect
except that even the visible space isn't shown.
Jim