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

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 

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 D

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 set

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):
> isM

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']
> a

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


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

2012-01-30 Thread 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.

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.

djobz