Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread stiv. djobz.
Hi all,

In the new release 2.0.5, the check box of Do not swap Apple and Control
keys does not work.

I had this problem with 2.0.2 and asked questions as are quoted below.
I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.

I think that some of you may have got new insights about this problem after
I asked questions about 2.0.2
and may know how to solve this problem now.

Would you give me any advice ?

stiv.

On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:

 Hi,

 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.

 Thanks,

 stiv.


 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.comwrote:

 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)

 Thanks,
 stiv.


 

 When I typed control + b, I got


 /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

 22:24:24.362: 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 typed command + b, I got


  /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]

 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:

 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Stephan Witt
Am 21.11.2012 um 13:39 schrieb stiv. djobz. stiv.dj...@gmail.com:

 Hi all,
 
 In the new release 2.0.5, the check box of Do not swap Apple and Control 
 keys does not work.
 
 I had this problem with 2.0.2 and asked questions as are quoted below.
 I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
 
 I think that some of you may have got new insights about this problem after I 
 asked questions about 2.0.2
 and may know how to solve this problem now.
   
 Would you give me any advice ?

Hi Stiv,

it looks like the difference between the working and the broken versions is the 
Mac OS framework Qt is compiled for.
The newest one is made with Cocoa - the more modern API for Mac OS X - because 
of the high resolution display features.
The 2.0.4 was built with the Carbon framework. But this isn't the whole story, 
there must be another difference. 
I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. Just 
like it was with LyX 2.0.2.

Currently I have no idea…

Regards,
Stephan

 On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 Hi,
 
 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.
 
 Thanks,
 
 stiv.
 
 
 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
  /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]
 
 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:
 So now 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Jens Nöckel
So far it seems that LyX 2.05 is working for me, with the Meta and Control keys 
switched. I have Mac OS X 10.7.5 and can't test on 10.8. But if it turns out 
that there's something wrong with the Cocoa Qt then one might want to go back 
to the previous Qt because there isn't really any usability benefit to the new 
one. After all, the main text editor window is still displayed exactly the same 
on retina displays: not in high resolution. Only the menus are rendered in high 
res now - at least that's what I'm seeing here.

Jens


On Nov 21, 2012, at 1:24 PM, Stephan Witt wrote:

 Am 21.11.2012 um 13:39 schrieb stiv. djobz. stiv.dj...@gmail.com:
 
 Hi all,
 
 In the new release 2.0.5, the check box of Do not swap Apple and Control 
 keys does not work.
 
 I had this problem with 2.0.2 and asked questions as are quoted below.
 I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
 
 I think that some of you may have got new insights about this problem after 
 I asked questions about 2.0.2
 and may know how to solve this problem now.
 
 Would you give me any advice ?
 
 Hi Stiv,
 
 it looks like the difference between the working and the broken versions is 
 the Mac OS framework Qt is compiled for.
 The newest one is made with Cocoa - the more modern API for Mac OS X - 
 because of the high resolution display features.
 The 2.0.4 was built with the Carbon framework. But this isn't the whole 
 story, there must be another difference. 
 I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. 
 Just like it was with LyX 2.0.2.
 
 Currently I have no idea…
 
 Regards,
 Stephan
 
 On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 Hi,
 
 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.
 
 Thanks,
 
 stiv.
 
 
 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
 /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
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Jens Nöckel
Sorry, when I said switched I meant _not_ switched. Otherwise my answer 
wouldn't have made much sense... 

So I don't see the problem Mr. Djobs is describing.

On Nov 21, 2012, at 3:55 PM, Jens Nöckel wrote:

 So far it seems that LyX 2.05 is working for me, with the Meta and Control 
 keys switched. I have Mac OS X 10.7.5 and can't test on 10.8. But if it turns 
 out that there's something wrong with the Cocoa Qt then one might want to go 
 back to the previous Qt because there isn't really any usability benefit to 
 the new one. After all, the main text editor window is still displayed 
 exactly the same on retina displays: not in high resolution. Only the menus 
 are rendered in high res now - at least that's what I'm seeing here.
 
 Jens
 
 
 On Nov 21, 2012, at 1:24 PM, Stephan Witt wrote:
 
 Am 21.11.2012 um 13:39 schrieb stiv. djobz. stiv.dj...@gmail.com:
 
 Hi all,
 
 In the new release 2.0.5, the check box of Do not swap Apple and Control 
 keys does not work.
 
 I had this problem with 2.0.2 and asked questions as are quoted below.
 I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
 
 I think that some of you may have got new insights about this problem after 
 I asked questions about 2.0.2
 and may know how to solve this problem now.
 
 Would you give me any advice ?
 
 Hi Stiv,
 
 it looks like the difference between the working and the broken versions is 
 the Mac OS framework Qt is compiled for.
 The newest one is made with Cocoa - the more modern API for Mac OS X - 
 because of the high resolution display features.
 The 2.0.4 was built with the Carbon framework. But this isn't the whole 
 story, there must be another difference. 
 I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. 
 Just like it was with LyX 2.0.2.
 
 Currently I have no idea…
 
 Regards,
 Stephan
 
 On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 Hi,
 
 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.
 
 Thanks,
 
 stiv.
 
 
 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
 /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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread stiv. djobz.
Hi all,

In the new release 2.0.5, the check box of Do not swap Apple and Control
keys does not work.

I had this problem with 2.0.2 and asked questions as are quoted below.
I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.

I think that some of you may have got new insights about this problem after
I asked questions about 2.0.2
and may know how to solve this problem now.

Would you give me any advice ?

stiv.

On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:

 Hi,

 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.

 Thanks,

 stiv.


 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.comwrote:

 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)

 Thanks,
 stiv.


 

 When I typed control + b, I got


 /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

 22:24:24.362: 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 typed command + b, I got


  /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]

 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:

 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Stephan Witt
Am 21.11.2012 um 13:39 schrieb stiv. djobz. stiv.dj...@gmail.com:

 Hi all,
 
 In the new release 2.0.5, the check box of Do not swap Apple and Control 
 keys does not work.
 
 I had this problem with 2.0.2 and asked questions as are quoted below.
 I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
 
 I think that some of you may have got new insights about this problem after I 
 asked questions about 2.0.2
 and may know how to solve this problem now.
   
 Would you give me any advice ?

Hi Stiv,

it looks like the difference between the working and the broken versions is the 
Mac OS framework Qt is compiled for.
The newest one is made with Cocoa - the more modern API for Mac OS X - because 
of the high resolution display features.
The 2.0.4 was built with the Carbon framework. But this isn't the whole story, 
there must be another difference. 
I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. Just 
like it was with LyX 2.0.2.

Currently I have no idea…

Regards,
Stephan

 On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 Hi,
 
 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.
 
 Thanks,
 
 stiv.
 
 
 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
  /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]
 
 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:
 So now 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Jens Nöckel
So far it seems that LyX 2.05 is working for me, with the Meta and Control keys 
switched. I have Mac OS X 10.7.5 and can't test on 10.8. But if it turns out 
that there's something wrong with the Cocoa Qt then one might want to go back 
to the previous Qt because there isn't really any usability benefit to the new 
one. After all, the main text editor window is still displayed exactly the same 
on retina displays: not in high resolution. Only the menus are rendered in high 
res now - at least that's what I'm seeing here.

Jens


On Nov 21, 2012, at 1:24 PM, Stephan Witt wrote:

 Am 21.11.2012 um 13:39 schrieb stiv. djobz. stiv.dj...@gmail.com:
 
 Hi all,
 
 In the new release 2.0.5, the check box of Do not swap Apple and Control 
 keys does not work.
 
 I had this problem with 2.0.2 and asked questions as are quoted below.
 I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
 
 I think that some of you may have got new insights about this problem after 
 I asked questions about 2.0.2
 and may know how to solve this problem now.
 
 Would you give me any advice ?
 
 Hi Stiv,
 
 it looks like the difference between the working and the broken versions is 
 the Mac OS framework Qt is compiled for.
 The newest one is made with Cocoa - the more modern API for Mac OS X - 
 because of the high resolution display features.
 The 2.0.4 was built with the Carbon framework. But this isn't the whole 
 story, there must be another difference. 
 I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. 
 Just like it was with LyX 2.0.2.
 
 Currently I have no idea…
 
 Regards,
 Stephan
 
 On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 Hi,
 
 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.
 
 Thanks,
 
 stiv.
 
 
 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
 /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
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Jens Nöckel
Sorry, when I said switched I meant _not_ switched. Otherwise my answer 
wouldn't have made much sense... 

So I don't see the problem Mr. Djobs is describing.

On Nov 21, 2012, at 3:55 PM, Jens Nöckel wrote:

 So far it seems that LyX 2.05 is working for me, with the Meta and Control 
 keys switched. I have Mac OS X 10.7.5 and can't test on 10.8. But if it turns 
 out that there's something wrong with the Cocoa Qt then one might want to go 
 back to the previous Qt because there isn't really any usability benefit to 
 the new one. After all, the main text editor window is still displayed 
 exactly the same on retina displays: not in high resolution. Only the menus 
 are rendered in high res now - at least that's what I'm seeing here.
 
 Jens
 
 
 On Nov 21, 2012, at 1:24 PM, Stephan Witt wrote:
 
 Am 21.11.2012 um 13:39 schrieb stiv. djobz. stiv.dj...@gmail.com:
 
 Hi all,
 
 In the new release 2.0.5, the check box of Do not swap Apple and Control 
 keys does not work.
 
 I had this problem with 2.0.2 and asked questions as are quoted below.
 I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
 
 I think that some of you may have got new insights about this problem after 
 I asked questions about 2.0.2
 and may know how to solve this problem now.
 
 Would you give me any advice ?
 
 Hi Stiv,
 
 it looks like the difference between the working and the broken versions is 
 the Mac OS framework Qt is compiled for.
 The newest one is made with Cocoa - the more modern API for Mac OS X - 
 because of the high resolution display features.
 The 2.0.4 was built with the Carbon framework. But this isn't the whole 
 story, there must be another difference. 
 I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. 
 Just like it was with LyX 2.0.2.
 
 Currently I have no idea…
 
 Regards,
 Stephan
 
 On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 Hi,
 
 It seems that in the new release 2.0.3.,
 the checkbox Do not swap Apple and Control keys
 works.
 
 Thanks,
 
 stiv.
 
 
 On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:
 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
 /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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread stiv. djobz.
Hi all,

In the new release 2.0.5, the check box of "Do not swap Apple and Control
keys" does not work.

I had this problem with 2.0.2 and asked questions as are quoted below.
I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.

I think that some of you may have got new insights about this problem after
I asked questions about 2.0.2
and may know how to solve this problem now.

Would you give me any advice ?

stiv.

On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz.  wrote:

> Hi,
>
> It seems that in the new release 2.0.3.,
> the checkbox "Do not swap Apple and Control keys"
> works.
>
> Thanks,
>
> stiv.
>
>
> On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. wrote:
>
>> I got the same results with a new user account.
>> (except  "22:24:24.362" in the Progress/Debug messages below.)
>>
>> Thanks,
>> stiv.
>>
>>
>> 
>>
>> When I typed control + b, I got
>>
>>
>> /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
>>
>> 22:24:24.362: 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 typed command + b, I got
>>
>>
>>  /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]
>>
>> On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel  wrote:
>>
>>> 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Stephan Witt
Am 21.11.2012 um 13:39 schrieb stiv. djobz. :

> Hi all,
> 
> In the new release 2.0.5, the check box of "Do not swap Apple and Control 
> keys" does not work.
> 
> I had this problem with 2.0.2 and asked questions as are quoted below.
> I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
> 
> I think that some of you may have got new insights about this problem after I 
> asked questions about 2.0.2
> and may know how to solve this problem now.
>   
> Would you give me any advice ?

Hi Stiv,

it looks like the difference between the working and the broken versions is the 
Mac OS framework Qt is compiled for.
The newest one is made with Cocoa - the more modern API for Mac OS X - because 
of the high resolution display features.
The 2.0.4 was built with the Carbon framework. But this isn't the whole story, 
there must be another difference. 
I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. Just 
like it was with LyX 2.0.2.

Currently I have no idea…

Regards,
Stephan

> On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz.  wrote:
> Hi,
> 
> It seems that in the new release 2.0.3.,
> the checkbox "Do not swap Apple and Control keys"
> works.
> 
> Thanks,
> 
> stiv.
> 
> 
> On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz.  wrote:
> I got the same results with a new user account.
> (except  "22:24:24.362" in the Progress/Debug messages below.)
> 
> Thanks,
> stiv.
> 
> 
> When I typed control + b, I got
> 
> /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
> 22:24:24.362: 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 typed command + b, I got
> 
>  /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): 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Jens Nöckel
So far it seems that LyX 2.05 is working for me, with the Meta and Control keys 
switched. I have Mac OS X 10.7.5 and can't test on 10.8. But if it turns out 
that there's something wrong with the Cocoa Qt then one might want to go back 
to the previous Qt because there isn't really any usability benefit to the new 
one. After all, the main text editor window is still displayed exactly the same 
on retina displays: not in high resolution. Only the menus are rendered in high 
res now - at least that's what I'm seeing here.

Jens


On Nov 21, 2012, at 1:24 PM, Stephan Witt wrote:

> Am 21.11.2012 um 13:39 schrieb stiv. djobz. :
> 
>> Hi all,
>> 
>> In the new release 2.0.5, the check box of "Do not swap Apple and Control 
>> keys" does not work.
>> 
>> I had this problem with 2.0.2 and asked questions as are quoted below.
>> I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
>> 
>> I think that some of you may have got new insights about this problem after 
>> I asked questions about 2.0.2
>> and may know how to solve this problem now.
>> 
>> Would you give me any advice ?
> 
> Hi Stiv,
> 
> it looks like the difference between the working and the broken versions is 
> the Mac OS framework Qt is compiled for.
> The newest one is made with Cocoa - the more modern API for Mac OS X - 
> because of the high resolution display features.
> The 2.0.4 was built with the Carbon framework. But this isn't the whole 
> story, there must be another difference. 
> I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. 
> Just like it was with LyX 2.0.2.
> 
> Currently I have no idea…
> 
> Regards,
> Stephan
> 
>> On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz.  wrote:
>> Hi,
>> 
>> It seems that in the new release 2.0.3.,
>> the checkbox "Do not swap Apple and Control keys"
>> works.
>> 
>> Thanks,
>> 
>> stiv.
>> 
>> 
>> On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz.  wrote:
>> I got the same results with a new user account.
>> (except  "22:24:24.362" in the Progress/Debug messages below.)
>> 
>> Thanks,
>> stiv.
>> 
>> 
>> When I typed control + b, I got
>> 
>> /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
>> 22:24:24.362: 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 typed command + b, I got
>> 
>> /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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-11-21 Thread Jens Nöckel
Sorry, when I said switched I meant _not_ switched. Otherwise my answer 
wouldn't have made much sense... 

So I don't see the problem Mr. Djobs is describing.

On Nov 21, 2012, at 3:55 PM, Jens Nöckel wrote:

> So far it seems that LyX 2.05 is working for me, with the Meta and Control 
> keys switched. I have Mac OS X 10.7.5 and can't test on 10.8. But if it turns 
> out that there's something wrong with the Cocoa Qt then one might want to go 
> back to the previous Qt because there isn't really any usability benefit to 
> the new one. After all, the main text editor window is still displayed 
> exactly the same on retina displays: not in high resolution. Only the menus 
> are rendered in high res now - at least that's what I'm seeing here.
> 
> Jens
> 
> 
> On Nov 21, 2012, at 1:24 PM, Stephan Witt wrote:
> 
>> Am 21.11.2012 um 13:39 schrieb stiv. djobz. :
>> 
>>> Hi all,
>>> 
>>> In the new release 2.0.5, the check box of "Do not swap Apple and Control 
>>> keys" does not work.
>>> 
>>> I had this problem with 2.0.2 and asked questions as are quoted below.
>>> I didn't have this problem with 2.0.3 and 2.0.4. But with 2.0.5, I have it.
>>> 
>>> I think that some of you may have got new insights about this problem after 
>>> I asked questions about 2.0.2
>>> and may know how to solve this problem now.
>>> 
>>> Would you give me any advice ?
>> 
>> Hi Stiv,
>> 
>> it looks like the difference between the working and the broken versions is 
>> the Mac OS framework Qt is compiled for.
>> The newest one is made with Cocoa - the more modern API for Mac OS X - 
>> because of the high resolution display features.
>> The 2.0.4 was built with the Carbon framework. But this isn't the whole 
>> story, there must be another difference. 
>> I say this, because it works for me on Mac OS X 10.6.8 and on 10.8.2 too. 
>> Just like it was with LyX 2.0.2.
>> 
>> Currently I have no idea…
>> 
>> Regards,
>> Stephan
>> 
>>> On Sat, Mar 3, 2012 at 5:39 PM, stiv. djobz.  wrote:
>>> Hi,
>>> 
>>> It seems that in the new release 2.0.3.,
>>> the checkbox "Do not swap Apple and Control keys"
>>> works.
>>> 
>>> Thanks,
>>> 
>>> stiv.
>>> 
>>> 
>>> On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz.  wrote:
>>> I got the same results with a new user account.
>>> (except  "22:24:24.362" in the Progress/Debug messages below.)
>>> 
>>> Thanks,
>>> stiv.
>>> 
>>> 
>>> When I typed control + b, I got
>>> 
>>> /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
>>> 22:24:24.362: 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 typed command + b, I got
>>> 
>>> /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
>>> 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-03-03 Thread stiv. djobz.
Hi,

It seems that in the new release 2.0.3.,
the checkbox Do not swap Apple and Control keys
works.

Thanks,

stiv.

On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:

 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)

 Thanks,
 stiv.


 

 When I typed control + b, I got


 /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

 22:24:24.362: 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 typed command + b, I got


  /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]

 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:

 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
 PreferencesScreen fontsRoman
 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)
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-03-03 Thread stiv. djobz.
Hi,

It seems that in the new release 2.0.3.,
the checkbox Do not swap Apple and Control keys
works.

Thanks,

stiv.

On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz. stiv.dj...@gmail.com wrote:

 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)

 Thanks,
 stiv.


 

 When I typed control + b, I got


 /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

 22:24:24.362: 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 typed command + b, I got


  /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]

 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:

 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
 PreferencesScreen fontsRoman
 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)
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-03-03 Thread stiv. djobz.
Hi,

It seems that in the new release 2.0.3.,
the checkbox "Do not swap Apple and Control keys"
works.

Thanks,

stiv.

On Thu, Feb 2, 2012 at 10:46 PM, stiv. djobz.  wrote:

> I got the same results with a new user account.
> (except  "22:24:24.362" in the Progress/Debug messages below.)
>
> Thanks,
> stiv.
>
>
> 
>
> When I typed control + b, I got
>
>
> /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
>
> 22:24:24.362: 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 typed command + b, I got
>
>
>  /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]
>
> On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel  wrote:
>
>> 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-02 Thread stiv. djobz.
I got the same results with a new user account.
(except  22:24:24.362 in the Progress/Debug messages below.)

Thanks,
stiv.



When I typed control + b, I got


/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

22:24:24.362: 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 typed command + b, I got


 /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]

On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:

 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
 PreferencesScreen fontsRoman
 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-02 Thread Jens Nöckel
No easy solution then…

I looked at the Qt bug tracker and didn't find anything that could explain 
this, except for this entry:
https://bugreports.qt-project.org/browse/QTBUG-14381

Since I can't reproduce this problem, I'm currently out of ideas. Maybe you 
could still check what happens if you connect an external western keyboard to 
your  laptop? Unfortunately I don't have access to a Japanese keyboard… 

It's probably time to file a bug report about this.

Jens

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

 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
  /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]
 
 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:
 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
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-02 Thread stiv. djobz.
I got the same results with a new user account.
(except  22:24:24.362 in the Progress/Debug messages below.)

Thanks,
stiv.



When I typed control + b, I got


/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

22:24:24.362: 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 typed command + b, I got


 /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]

On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:

 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
 PreferencesScreen fontsRoman
 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-02 Thread Jens Nöckel
No easy solution then…

I looked at the Qt bug tracker and didn't find anything that could explain 
this, except for this entry:
https://bugreports.qt-project.org/browse/QTBUG-14381

Since I can't reproduce this problem, I'm currently out of ideas. Maybe you 
could still check what happens if you connect an external western keyboard to 
your  laptop? Unfortunately I don't have access to a Japanese keyboard… 

It's probably time to file a bug report about this.

Jens

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

 I got the same results with a new user account.
 (except  22:24:24.362 in the Progress/Debug messages below.)
 
 Thanks,
 stiv.
 
 
 When I typed control + b, I got
 
 /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
 22:24:24.362: 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 typed command + b, I got
 
  /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]
 
 On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel noec...@uoregon.edu wrote:
 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
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-02 Thread stiv. djobz.
I got the same results with a new user account.
(except  "22:24:24.362" in the Progress/Debug messages below.)

Thanks,
stiv.



When I typed control + b, I got


/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

22:24:24.362: 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 typed command + b, I got


 /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]

On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel  wrote:

> 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  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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-02 Thread Jens Nöckel
No easy solution then…

I looked at the Qt bug tracker and didn't find anything that could explain 
this, except for this entry:
https://bugreports.qt-project.org/browse/QTBUG-14381

Since I can't reproduce this problem, I'm currently out of ideas. Maybe you 
could still check what happens if you connect an external western keyboard to 
your  laptop? Unfortunately I don't have access to a Japanese keyboard… 

It's probably time to file a bug report about this.

Jens

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

> I got the same results with a new user account.
> (except  "22:24:24.362" in the Progress/Debug messages below.)
> 
> Thanks,
> stiv.
> 
> 
> When I typed control + b, I got
> 
> /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
> 22:24:24.362: 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 typed command + b, I got
> 
>  /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]
> 
> On Thu, Feb 2, 2012 at 5:01 AM, Jens Nöckel  wrote:
> 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-01 Thread stiv. djobz.
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
PreferencesScreen fontsRoman
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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-01 Thread Jens Nöckel
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 
 PreferencesScreen fontsRoman
 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-01 Thread stiv. djobz.
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
PreferencesScreen fontsRoman
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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-01 Thread Jens Nöckel
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 
 PreferencesScreen fontsRoman
 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 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-01 Thread stiv. djobz.
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  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: 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-02-01 Thread Jens Nöckel
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  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:
> 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
It's new. I was using emacs shortcuts by checking this checkbox in 2.0.1.
I noticed this problem immediately after I updated to 2.0.2.
Checking and unchecking the box does not affect the keys in 2.0.2.

Thanks,
stiv.

On Tue, Jan 31, 2012 at 4:30 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Is it new in 2.0.2? And what does not work?

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 Of course. It should work.

 Stephan


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
I made sure my keybindings are set properly as yours.
For example,
in 2.0.1,
I could move the cursor backwards by typing ctrl + b with the checkbox
ticked
and by typing command +b with the checkbox unticked,
and in 2.0.2,
I have to type command + b in both the cases.

I'm thinking of going back to 2.0.1 and waiting for a bugfix
instead of using additional softwares or macros.
But thanks for your advice.

stiv.

On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.eduwrote:

 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Hm, it doesn't seem to make any difference for me either, but fortunately,
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?

 Have you checked to make sure the keybindings are set properly in LyX -
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X
 S are set in my preferences with ^F, ^X S, etc.

  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 For a time I used a macros (called with a global hotkey) that would toggle
 the Capslock key between Ctrl and Cmd that I would invoke going into and
 coming out of LyX. That was of course less than ideal but it was fast and
 worked pretty well. Hasn't been necessary for a quite a long time, though.

 Chris Menzel




Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

 I made sure my keybindings are set properly as yours.
 For example, 
 in 2.0.1, 
 I could move the cursor backwards by typing ctrl + b with the checkbox ticked
 and by typing command +b with the checkbox unticked, 
 and in 2.0.2, 
 I have to type command + b in both the cases. 
 
 I'm thinking of going back to 2.0.1 and waiting for a bugfix
 instead of using additional softwares or macros.

But the bugfix will never arise if it's not possible to find the cause for your 
problem.

Here I'm using LyX-2.0.2 and have no user defined key bindings and set 
shortcuts to emacs and the checkbox don't swap enabled.

When typing ctrl+b LyX's key debug output is:
.../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
and the cursor is moving one character backwards.

When typing command+b I can see:
.../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
.../GuiApplication.cpp(1728): isText() is true, inserting.
.../GuiApplication.cpp(1746): SelfInsert arg[`b']
and the letter b is inserted.

Please, check the contents of the file $HOME/Library/Application 
Support/LyX-2.0/bind/user.bind if it's empty.

Stephan

 But thanks for your advice.
 
 stiv. 
 
 On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.edu wrote:
 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.
 
 Hm, it doesn't seem to make any difference for me either, but fortunately, 
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
 
  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
 
 Have you checked to make sure the keybindings are set properly in LyX - 
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X S 
 are set in my preferences with ^F, ^X S, etc.
 
  To compensate the swapping with another swapping in System Preferences is 
  not a realistic choice.
  It would affect the shortcuts in all the other softwares.
 
 For a time I used a macros (called with a global hotkey) that would toggle 
 the Capslock key between Ctrl and Cmd that I would invoke going into and 
 coming out of LyX. That was of course less than ideal but it was fast and 
 worked pretty well. Hasn't been necessary for a quite a long time, though.
 
 Chris Menzel
 
 



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
Thanks.

This is my first time to see the progress/debug messages...

The responses seems to be different.


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]



On Tue, Jan 31, 2012 at 10:04 PM, Stephan Witt st.w...@gmx.net wrote:

 Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

  I made sure my keybindings are set properly as yours.
  For example,
  in 2.0.1,
  I could move the cursor backwards by typing ctrl + b with the checkbox
 ticked
  and by typing command +b with the checkbox unticked,
  and in 2.0.2,
  I have to type command + b in both the cases.
 
  I'm thinking of going back to 2.0.1 and waiting for a bugfix
  instead of using additional softwares or macros.

 But the bugfix will never arise if it's not possible to find the cause for
 your problem.

 Here I'm using LyX-2.0.2 and have no user defined key bindings and set
 shortcuts to emacs and the checkbox don't swap enabled.

 When typing ctrl+b LyX's key debug output is:
 .../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
 and the cursor is moving one character backwards.

 When typing command+b I can see:
 .../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
 .../GuiApplication.cpp(1728): isText() is true, inserting.
 .../GuiApplication.cpp(1746): SelfInsert arg[`b']
 and the letter b is inserted.

 Please, check the contents of the file $HOME/Library/Application
 Support/LyX-2.0/bind/user.bind if it's empty.

 Stephan

  But thanks for your advice.
 
  stiv.
 
  On Tue, Jan 31, 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
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,
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
For confirmation, I downloaded lyx-2.0.2 from www.lyx.org. (I had been
using the one from a mirror.)
But the behavior did not change and I got the same messages.

I have no special setting to the system either.
The only difference I notice is that I use white Macbook with a Japanese
keyboard.
But I can not deduce anything from this.

stiv.


On Wed, Feb 1, 2012 at 12:25 AM, Stephan Witt st.w...@gmx.net 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
 
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Jens Nöckel
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: 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 19:16 schrieb Jens Nöckel:

 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:
 
...
Thanks for the good recipe.

 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.

Regarding Qt the difference between LyX-2.0.1 and LyX-2.0.2 is the version of 
the framework.
* LyX-2.0.1 comes with Qt-4.6.3 and
* LyX-2.0.2 comes with Qt-4.7.2

Moving backwards to Qt-4.6.3 has it's own problems - we'll get crashes with 
tools like Divvy again.

Stephan

 
 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
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
It's new. I was using emacs shortcuts by checking this checkbox in 2.0.1.
I noticed this problem immediately after I updated to 2.0.2.
Checking and unchecking the box does not affect the keys in 2.0.2.

Thanks,
stiv.

On Tue, Jan 31, 2012 at 4:30 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Is it new in 2.0.2? And what does not work?

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 Of course. It should work.

 Stephan


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
I made sure my keybindings are set properly as yours.
For example,
in 2.0.1,
I could move the cursor backwards by typing ctrl + b with the checkbox
ticked
and by typing command +b with the checkbox unticked,
and in 2.0.2,
I have to type command + b in both the cases.

I'm thinking of going back to 2.0.1 and waiting for a bugfix
instead of using additional softwares or macros.
But thanks for your advice.

stiv.

On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.eduwrote:

 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.

 Hm, it doesn't seem to make any difference for me either, but fortunately,
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?

 Have you checked to make sure the keybindings are set properly in LyX -
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X
 S are set in my preferences with ^F, ^X S, etc.

  To compensate the swapping with another swapping in System Preferences
 is not a realistic choice.
  It would affect the shortcuts in all the other softwares.

 For a time I used a macros (called with a global hotkey) that would toggle
 the Capslock key between Ctrl and Cmd that I would invoke going into and
 coming out of LyX. That was of course less than ideal but it was fast and
 worked pretty well. Hasn't been necessary for a quite a long time, though.

 Chris Menzel




Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

 I made sure my keybindings are set properly as yours.
 For example, 
 in 2.0.1, 
 I could move the cursor backwards by typing ctrl + b with the checkbox ticked
 and by typing command +b with the checkbox unticked, 
 and in 2.0.2, 
 I have to type command + b in both the cases. 
 
 I'm thinking of going back to 2.0.1 and waiting for a bugfix
 instead of using additional softwares or macros.

But the bugfix will never arise if it's not possible to find the cause for your 
problem.

Here I'm using LyX-2.0.2 and have no user defined key bindings and set 
shortcuts to emacs and the checkbox don't swap enabled.

When typing ctrl+b LyX's key debug output is:
.../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
and the cursor is moving one character backwards.

When typing command+b I can see:
.../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
.../GuiApplication.cpp(1728): isText() is true, inserting.
.../GuiApplication.cpp(1746): SelfInsert arg[`b']
and the letter b is inserted.

Please, check the contents of the file $HOME/Library/Application 
Support/LyX-2.0/bind/user.bind if it's empty.

Stephan

 But thanks for your advice.
 
 stiv. 
 
 On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel cmen...@tamu.edu wrote:
 Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
  The checkbox of
  Do not swap Apple and Control keys
  in
  LyXPreferencesEditingKeyboard/Mouse
  does not work in 2.0.2.
 
 Hm, it doesn't seem to make any difference for me either, but fortunately, 
 the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
 
  I'm using emacs shortcuts, so this problem is serious for me.
  Is there any solution for this problem ?
 
 Have you checked to make sure the keybindings are set properly in LyX - 
 Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X S 
 are set in my preferences with ^F, ^X S, etc.
 
  To compensate the swapping with another swapping in System Preferences is 
  not a realistic choice.
  It would affect the shortcuts in all the other softwares.
 
 For a time I used a macros (called with a global hotkey) that would toggle 
 the Capslock key between Ctrl and Cmd that I would invoke going into and 
 coming out of LyX. That was of course less than ideal but it was fast and 
 worked pretty well. Hasn't been necessary for a quite a long time, though.
 
 Chris Menzel
 
 



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
Thanks.

This is my first time to see the progress/debug messages...

The responses seems to be different.


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]



On Tue, Jan 31, 2012 at 10:04 PM, Stephan Witt st.w...@gmx.net wrote:

 Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

  I made sure my keybindings are set properly as yours.
  For example,
  in 2.0.1,
  I could move the cursor backwards by typing ctrl + b with the checkbox
 ticked
  and by typing command +b with the checkbox unticked,
  and in 2.0.2,
  I have to type command + b in both the cases.
 
  I'm thinking of going back to 2.0.1 and waiting for a bugfix
  instead of using additional softwares or macros.

 But the bugfix will never arise if it's not possible to find the cause for
 your problem.

 Here I'm using LyX-2.0.2 and have no user defined key bindings and set
 shortcuts to emacs and the checkbox don't swap enabled.

 When typing ctrl+b LyX's key debug output is:
 .../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
 and the cursor is moving one character backwards.

 When typing command+b I can see:
 .../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
 .../GuiApplication.cpp(1728): isText() is true, inserting.
 .../GuiApplication.cpp(1746): SelfInsert arg[`b']
 and the letter b is inserted.

 Please, check the contents of the file $HOME/Library/Application
 Support/LyX-2.0/bind/user.bind if it's empty.

 Stephan

  But thanks for your advice.
 
  stiv.
 
  On Tue, Jan 31, 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
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,
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
For confirmation, I downloaded lyx-2.0.2 from www.lyx.org. (I had been
using the one from a mirror.)
But the behavior did not change and I got the same messages.

I have no special setting to the system either.
The only difference I notice is that I use white Macbook with a Japanese
keyboard.
But I can not deduce anything from this.

stiv.


On Wed, Feb 1, 2012 at 12:25 AM, Stephan Witt st.w...@gmx.net 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
 
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Jens Nöckel
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: 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 19:16 schrieb Jens Nöckel:

 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:
 
...
Thanks for the good recipe.

 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.

Regarding Qt the difference between LyX-2.0.1 and LyX-2.0.2 is the version of 
the framework.
* LyX-2.0.1 comes with Qt-4.6.3 and
* LyX-2.0.2 comes with Qt-4.7.2

Moving backwards to Qt-4.6.3 has it's own problems - we'll get crashes with 
tools like Divvy again.

Stephan

 
 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
 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
It's new. I was using emacs shortcuts by checking this checkbox in 2.0.1.
I noticed this problem immediately after I updated to 2.0.2.
Checking and unchecking the box does not affect the keys in 2.0.2.

Thanks,
stiv.

On Tue, Jan 31, 2012 at 4:30 AM, Stephan Witt  wrote:

> Am 30.01.2012 um 20:07 schrieb stiv. djobz.:
>
> > The checkbox of
> > "Do not swap Apple and Control keys"
> > in
> > LyX>Preferences>Editing>Keyboard/Mouse
> > does not work in 2.0.2.
>
> Is it new in 2.0.2? And what does not work?
>
> > I'm using emacs shortcuts, so this problem is serious for me.
> > Is there any solution for this problem ?
> > To compensate the swapping with another swapping in System Preferences
> is not a realistic choice.
> > It would affect the shortcuts in all the other softwares.
>
> Of course. It should work.
>
> Stephan


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
I made sure my keybindings are set properly as yours.
For example,
in 2.0.1,
I could move the cursor backwards by typing ctrl + b with the checkbox
ticked
and by typing command +b with the checkbox unticked,
and in 2.0.2,
I have to type command + b in both the cases.

I'm thinking of going back to 2.0.1 and waiting for a bugfix
instead of using additional softwares or macros.
But thanks for your advice.

stiv.

On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel wrote:

> Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
> > The checkbox of
> > "Do not swap Apple and Control keys"
> > in
> > LyX>Preferences>Editing>Keyboard/Mouse
> > does not work in 2.0.2.
>
> Hm, it doesn't seem to make any difference for me either, but fortunately,
> the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
>
> > I'm using emacs shortcuts, so this problem is serious for me.
> > Is there any solution for this problem ?
>
> Have you checked to make sure the keybindings are set properly in LyX ->
> Preferences -> Editor?  Relevant Ctrl key combos like "Ctrl-F" and "Ctrl-X
> S" are set in my preferences with ^F, "^X S", etc.
>
> > To compensate the swapping with another swapping in System Preferences
> is not a realistic choice.
> > It would affect the shortcuts in all the other softwares.
>
> For a time I used a macros (called with a global hotkey) that would toggle
> the Capslock key between Ctrl and Cmd that I would invoke going into and
> coming out of LyX. That was of course less than ideal but it was fast and
> worked pretty well. Hasn't been necessary for a quite a long time, though.
>
> Chris Menzel
>
>


Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 14:46 schrieb stiv. djobz.:

> I made sure my keybindings are set properly as yours.
> For example, 
> in 2.0.1, 
> I could move the cursor backwards by typing ctrl + b with the checkbox ticked
> and by typing command +b with the checkbox unticked, 
> and in 2.0.2, 
> I have to type command + b in both the cases. 
> 
> I'm thinking of going back to 2.0.1 and waiting for a bugfix
> instead of using additional softwares or macros.

But the bugfix will never arise if it's not possible to find the cause for your 
problem.

Here I'm using LyX-2.0.2 and have no user defined key bindings and set 
shortcuts to "emacs" and the checkbox "don't swap" enabled.

When typing ctrl+b LyX's key debug output is:
.../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
and the cursor is moving one character backwards.

When typing command+b I can see:
.../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
.../GuiApplication.cpp(1728): isText() is true, inserting.
.../GuiApplication.cpp(1746): SelfInsert arg[`b']
and the letter "b" is inserted.

Please, check the contents of the file "$HOME/Library/Application 
Support/LyX-2.0/bind/user.bind" if it's empty.

Stephan

> But thanks for your advice.
> 
> stiv. 
> 
> On Tue, Jan 31, 2012 at 4:48 AM, Christopher Menzel  wrote:
> Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
> > The checkbox of
> > "Do not swap Apple and Control keys"
> > in
> > LyX>Preferences>Editing>Keyboard/Mouse
> > does not work in 2.0.2.
> 
> Hm, it doesn't seem to make any difference for me either, but fortunately, 
> the Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.
> 
> > I'm using emacs shortcuts, so this problem is serious for me.
> > Is there any solution for this problem ?
> 
> Have you checked to make sure the keybindings are set properly in LyX -> 
> Preferences -> Editor?  Relevant Ctrl key combos like "Ctrl-F" and "Ctrl-X S" 
> are set in my preferences with ^F, "^X S", etc.
> 
> > To compensate the swapping with another swapping in System Preferences is 
> > not a realistic choice.
> > It would affect the shortcuts in all the other softwares.
> 
> For a time I used a macros (called with a global hotkey) that would toggle 
> the Capslock key between Ctrl and Cmd that I would invoke going into and 
> coming out of LyX. That was of course less than ideal but it was fast and 
> worked pretty well. Hasn't been necessary for a quite a long time, though.
> 
> Chris Menzel
> 
> 



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
Thanks.

This is my first time to see the progress/debug messages...

The responses seems to be different.


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]



On Tue, Jan 31, 2012 at 10:04 PM, Stephan Witt  wrote:

> Am 31.01.2012 um 14:46 schrieb stiv. djobz.:
>
> > I made sure my keybindings are set properly as yours.
> > For example,
> > in 2.0.1,
> > I could move the cursor backwards by typing ctrl + b with the checkbox
> ticked
> > and by typing command +b with the checkbox unticked,
> > and in 2.0.2,
> > I have to type command + b in both the cases.
> >
> > I'm thinking of going back to 2.0.1 and waiting for a bugfix
> > instead of using additional softwares or macros.
>
> But the bugfix will never arise if it's not possible to find the cause for
> your problem.
>
> Here I'm using LyX-2.0.2 and have no user defined key bindings and set
> shortcuts to "emacs" and the checkbox "don't swap" enabled.
>
> When typing ctrl+b LyX's key debug output is:
> .../GuiApplication.cpp(1705):  Key [action=][Kontroll-B]
> and the cursor is moving one character backwards.
>
> When typing command+b I can see:
> .../GuiApplication.cpp(1705):  Key [action=][Befehl-B]
> .../GuiApplication.cpp(1728): isText() is true, inserting.
> .../GuiApplication.cpp(1746): SelfInsert arg[`b']
> and the letter "b" is inserted.
>
> Please, check the contents of the file "$HOME/Library/Application
> Support/LyX-2.0/bind/user.bind" if it's empty.
>
> Stephan
>
> > But 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
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): 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread stiv. djobz.
For confirmation, I downloaded lyx-2.0.2 from www.lyx.org. (I had been
using the one from a mirror.)
But the behavior did not change and I got the same messages.

I have no special setting to the system either.
The only difference I notice is that I use white Macbook with a Japanese
keyboard.
But I can not deduce anything from this.

stiv.


On Wed, Feb 1, 2012 at 12: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_ 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Jens Nöckel
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 
>> 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-31 Thread Stephan Witt
Am 31.01.2012 um 19:16 schrieb Jens Nöckel:

> 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:
> 
...
Thanks for the good recipe.

> 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.

Regarding Qt the difference between LyX-2.0.1 and LyX-2.0.2 is the version of 
the framework.
* LyX-2.0.1 comes with Qt-4.6.3 and
* LyX-2.0.2 comes with Qt-4.7.2

Moving backwards to Qt-4.6.3 has it's own problems - we'll get crashes with 
tools like Divvy again.

Stephan

> 
> 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 !
>>> 

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-30 Thread Stephan Witt
Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

 The checkbox of 
 Do not swap Apple and Control keys
 in 
 LyXPreferencesEditingKeyboard/Mouse
 does not work in 2.0.2.

Is it new in 2.0.2? And what does not work?

 I'm using emacs shortcuts, so this problem is serious for me.  
 Is there any solution for this problem ?
 To compensate the swapping with another swapping in System Preferences is not 
 a realistic choice.
 It would affect the shortcuts in all the other softwares.

Of course. It should work.

Stephan

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-30 Thread Christopher Menzel
Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
 The checkbox of 
 Do not swap Apple and Control keys
 in 
 LyXPreferencesEditingKeyboard/Mouse
 does not work in 2.0.2.

Hm, it doesn't seem to make any difference for me either, but fortunately, the 
Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

 I'm using emacs shortcuts, so this problem is serious for me.  
 Is there any solution for this problem ?

Have you checked to make sure the keybindings are set properly in LyX - 
Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X S 
are set in my preferences with ^F, ^X S, etc.

 To compensate the swapping with another swapping in System Preferences is not 
 a realistic choice.
 It would affect the shortcuts in all the other softwares.

For a time I used a macros (called with a global hotkey) that would toggle the 
Capslock key between Ctrl and Cmd that I would invoke going into and coming out 
of LyX. That was of course less than ideal but it was fast and worked pretty 
well. Hasn't been necessary for a quite a long time, though.

Chris Menzel



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-30 Thread Stephan Witt
Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

 The checkbox of 
 Do not swap Apple and Control keys
 in 
 LyXPreferencesEditingKeyboard/Mouse
 does not work in 2.0.2.

Is it new in 2.0.2? And what does not work?

 I'm using emacs shortcuts, so this problem is serious for me.  
 Is there any solution for this problem ?
 To compensate the swapping with another swapping in System Preferences is not 
 a realistic choice.
 It would affect the shortcuts in all the other softwares.

Of course. It should work.

Stephan

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-30 Thread Christopher Menzel
Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
 The checkbox of 
 Do not swap Apple and Control keys
 in 
 LyXPreferencesEditingKeyboard/Mouse
 does not work in 2.0.2.

Hm, it doesn't seem to make any difference for me either, but fortunately, the 
Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

 I'm using emacs shortcuts, so this problem is serious for me.  
 Is there any solution for this problem ?

Have you checked to make sure the keybindings are set properly in LyX - 
Preferences - Editor?  Relevant Ctrl key combos like Ctrl-F and Ctrl-X S 
are set in my preferences with ^F, ^X S, etc.

 To compensate the swapping with another swapping in System Preferences is not 
 a realistic choice.
 It would affect the shortcuts in all the other softwares.

For a time I used a macros (called with a global hotkey) that would toggle the 
Capslock key between Ctrl and Cmd that I would invoke going into and coming out 
of LyX. That was of course less than ideal but it was fast and worked pretty 
well. Hasn't been necessary for a quite a long time, though.

Chris Menzel



Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-30 Thread Stephan Witt
Am 30.01.2012 um 20:07 schrieb stiv. djobz.:

> The checkbox of 
> "Do not swap Apple and Control keys"
> in 
> LyX>Preferences>Editing>Keyboard/Mouse
> does not work in 2.0.2.

Is it new in 2.0.2? And what does not work?

> I'm using emacs shortcuts, so this problem is serious for me.  
> Is there any solution for this problem ?
> To compensate the swapping with another swapping in System Preferences is not 
> a realistic choice.
> It would affect the shortcuts in all the other softwares.

Of course. It should work.

Stephan

Re: Cannot block the swapping of Apple and Control keys (OS 10.6, LyX 2.0.2)

2012-01-30 Thread Christopher Menzel
Am Jan 30, 2012 um 8:07 PM schrieb stiv. djobz.:
> The checkbox of 
> "Do not swap Apple and Control keys"
> in 
> LyX>Preferences>Editing>Keyboard/Mouse
> does not work in 2.0.2.

Hm, it doesn't seem to make any difference for me either, but fortunately, the 
Ctrl key is behaving for me as it ought vis-á-vis Emacs keybinding.

> I'm using emacs shortcuts, so this problem is serious for me.  
> Is there any solution for this problem ?

Have you checked to make sure the keybindings are set properly in LyX -> 
Preferences -> Editor?  Relevant Ctrl key combos like "Ctrl-F" and "Ctrl-X S" 
are set in my preferences with ^F, "^X S", etc.

> To compensate the swapping with another swapping in System Preferences is not 
> a realistic choice.
> It would affect the shortcuts in all the other softwares.

For a time I used a macros (called with a global hotkey) that would toggle the 
Capslock key between Ctrl and Cmd that I would invoke going into and coming out 
of LyX. That was of course less than ideal but it was fast and worked pretty 
well. Hasn't been necessary for a quite a long time, though.

Chris Menzel