snvv wrote:
Hello
I use sid debian with LyX 1.5-1 and I have a rather strange problem.
When I change language (alt+shift) the LyX menu is activated. Thus, in order
to write I have to press once the mouse (cursor) in the text to continue.
I thought might be a LyX config but I can't find anything about it.
Any suggestion please?
sn
Hi!
It doesn't sound like a LyX config issue, sounds more like a bad
interaction between LyX and the Desktop Environment. Here are a few
suggestions, though they are probably not what you were hoping for, it's
more workarounds than solutions:
1) Pressing Alt a second time may be enough to release the menu, so you
don't have to go to the mouse every time you switch languages.
2) You might want to consider changing the key combination you use for
switching languages (at the OS- / Window Manager- / Desktop Environment-
level). I changed the combination I use, because there are some LyX
bindings which I used a lot that contained Alt-Shift (e.g.,
Alt-Shift-right and Alt-Shift-left to increase/decrease the nesting
level, for example in a listing). You can probably do this through the
Gnome/KDE configuration if you're using one of those, or directly using
setxkbmap.
3) I like using keymaps for switching languages in LyX, rather than
switching at the keyboard level. To do that, you go to Tools ->
Preferences... -> Look and feel -> Keyboard, and check the "use keyboard
map" option. Then select the primary and secondary keymaps that you want
(I have 'null' as my primary, which I guess means no keymap). To switch
between the keymaps, you have two options: if you're using an RTL
language, then just switching to that language should automatically
activate the keymap. Otherwise, you have to first make sure that the RTL
option is turned off (Tools -> Preferences... -> Language settings ->
Language, and *un*check "Right-to-left language support"), and then you
can use the Alt-k-1 and Alt-k-2 keybindings to select the primary or
secondary keyboard, Alt-k-t to toggle between them (I myself use Hebrew,
which is an RTL language, so I don't use these bindings).
Note, however, that regardless of how you switch the keyboard, you
should also set the language correctly (Edit -> Text style ->
Customized... -> Language, or using the "language xxxx" lfun), in order
to let latex know what language the text is in, so that it can output it
correctly. For this reason, using a keymap is an advantage, because then
you can create a key binding which will both switch the keyboard and set
the language with one keypress. I don't know how to achieve this if
you're switching languages at the OS-level.
Dov