So now it's becoming more likely that this is a low-level configuration problem 
with Qt (although I'm by no means certain). To test this, a stab in the dark 
suggestion would be:

Create a new user account under the Mac's "System Preferences > Users and 
groups" (you can of course delete this account again later, but this is a way 
to start from a clean slate without hidden .files in your home directory and 
other stuff in your ~/Library that could mess things up. 

Then launch LyX from there and see if that behaves properly when you check the 
"swap" box again and restart LyX.

Jens


On Feb 1, 2012, at 6:46 AM, stiv. djobz. wrote:

> I tried 1) -- 8).
> I see the same problem as before. 
> Command and control keys do not behave correctly.
> 
> The result of 8) is
> preferences:\mac_dontswap_ctrl_meta true
> 
> As for 5), in my case, Times is chosen at 
> Preferences>Screen fonts>Roman
> from the first.
> 
> stiv.
> On Wed, Feb 1, 2012 at 2:16 AM, Jens Nöckel <noec...@uoregon.edu> wrote:
> Hi,
> since I don't see the problem on either OS X 10.6.8 or 10.7.2, I just tried 
> the following steps on my OS X 10.6.8 machine:
> 1)
> Move ~/Library/Application Support/LyX-2.0 to the Desktop.
> 
> 2)
> Fresh download of
> LyX-2.0.2+qt4-cocoa.dmg
> from www.lyx.org
> 
> 3)
> Move old LyX out of Application folder
> 
> 4)
> Install downloaded LyX and launch it
> 
> 5)
> In an unrelated note, I noticed that the default screen font wasn't correctly 
> displayed: should be Times but is Helvetica. So I chnaged that font to Times 
> New Roman and the display worked again.
> 
> 6)
> In Preferences, I then chose the xemacs bind file, and checked the box "Do 
> not swap Apple and Control Keys"
> 
> 7)
> I restarted LyX and opened a new document with Control-d (it worked as 
> expected). I then started a new math display formula with Apple-d and it 
> worked as expected.
> 
> 8)
> To double check, I went to the Terminal and navigated to
> ~/Library/Application Support/LyX-2.0
> then issued the command:
> grep dontswap *
> with the expected result:
> preferences:\mac_dontswap_ctrl_meta true
> 
> The last point is something you should definitely check, too. If you do the 
> same things (including step 1) but still have the problem, then one has to 
> start worrying that perhaps Qt is doing something wrong. Essentially what the 
> "don't swap" check box does is to set a Qt flag that gets updated when LyX 
> starts up.  I can't really see how anything on the LyX side should fail in 
> that process.
> 
> Jens
> 
> On Jan 31, 2012, at 8:25 AM, Stephan Witt wrote:
> 
> > Am 31.01.2012 um 16:36 schrieb stiv. djobz.:
> >
> >> Thanks.
> >> This is my first time to see the progress/debug messages...
> >
> > You're very clever ;-)
> >
> >> The responses seems to be different.
> >
> > Yes, unfortunately. I suppose you have saved you preferences and LyX was 
> > restarted.
> > So, it should work. But indeed it seems to ignore the don't swap option.
> > Interestingly there is an additional line in your output I don't have:
> >
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
> > keyevent has isNull() text !
> >
> > The complete output I get for ctrl-b is:
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  
> > count: 1 text:  isAutoRepeat: 0 key: 16777250 keyState: Meta-
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
> > Getting key 16777250, with text ''
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
> > Setting key to 16777250,
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> > is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> > KeySym is Alt_L
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> > is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> > isModifier is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):  
> > count: 1 text:   isAutoRepeat: 0 key: 66 keyState: Control-
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
> > Getting key 66, with text ' '
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
> > Setting key to 66,
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> > is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> > KeySym is b
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> > is 1
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> > isModifier is 0
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
> > action first set to []
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
> > action now set to []
> > /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705):  
> > Key [action=][Kontroll-B]
> >
> > I can see two possible explanations:
> > 1. We are using different LyX-2.0.2 software packages (I use the package 
> > from www.lyx.org)
> > 2. We have different environments and there is some critical setting I 
> > don't have
> > I have a german desktop and no special settings made to the system keyboard 
> > mappings.
> >
> > Do you have another idea? Do you have your own keyboard tables assigned?
> >
> > Stephan
> >
> >> I moved the .bind files in /Library/Application Support/LyX-2.0/bind/
> >> to another place and restart lyx 2.0.2 with the same settings as yours.
> >>
> >> When I type ctrl+b, nothing appears on the document.
> >> The message is:
> >>
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): 
> >> count: 1 text: isAutoRepeat: 0 key: 16777250 keyState: Meta-
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
> >> Getting key 16777250, with text ''
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
> >> Setting key to 16777250,
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> >> KeySym is Alt_L
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> >> isModifier is 1
> >> 23:16:35.603: Unknown 
> >> function./Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046):
> >>  count: 1 text: isAutoRepeat: 0 key: 66 keyState: Meta-
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
> >> keyevent has isNull() text !
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> >> KeySym is b
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> >> isModifier is 0
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
> >> action first set to []
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
> >> action now set to []
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): 
> >> Key [action=][Command-B]
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(726): text_ 
> >> empty, isText() == false
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1732): 
> >> Unknown, !isText() - giving up
> >>
> >>
> >> When I type command + b, the cursor moves backwards by one character.
> >> The message is:
> >>
> >>
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): 
> >> count: 1 text: isAutoRepeat: 0 key: 16777249 keyState: Control-
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(621): 
> >> Getting key 16777249, with text ''
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(627): 
> >> Setting key to 16777249,
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> >> KeySym is Control_L
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> >> isModifier is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiWorkArea.cpp(1046): 
> >> count: 1 text: isAutoRepeat: 0 key: 66 keyState: Control-
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(616): 
> >> keyevent has isNull() text !
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1663): 
> >> KeySym is b
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(642): isOK 
> >> is 1
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiKeySymbol.cpp(650): 
> >> isModifier is 0
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1686): 
> >> action first set to []
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1694): 
> >> action now set to []
> >> /Users/Shared/LyX/lyx-2.0.2/src/frontends/qt4/GuiApplication.cpp(1705): 
> >> Key [action=][Control-B]
> >>
> >>
> >
> >
> 
> 

Reply via email to