Alt key problems

Angus Leeming <[email protected]>
Newsgroups gmane.comp.kde.devel.cygwin
Message-ID <[email protected]>
Guys, I'd like to draw your attention to the list of Qt/Win Free bugs here:
http://wiki.lyx.org/Windows/LyX136pre#qt_winfree_bugs Any progress being
made?

In particular, here's some further info about the Alt key problem.

Start lyx from a MinSYS terminal as
$ /c/Program\ Files/LyX/bin/lyx -dbg key

Write some text and then highlight a chunck of it, either with the mouse or
with Shift-Right Arrow.

The shortcut "M-c c" is a cua binding for Layout->Noun Style. On linux,
pressing "M-c c" leads to this data being printed to the console:

Press key 4131 text "none", ascii "0"
Setting key to 4131,
KeySym is Alt_R
isOK is 1
isMod is 1
isModifier true

Press key 67 text "c", ascii "99"
Setting key to 67, c
KeySym is c
isOK is 1
isMod is 0
encoding is iso8859-1
Using codec ISO 8859-1
ISOEncoded returning value 99
action first set to [1]
action now set to [1]
Key [action=1][M-c]

Press key 67 text "c", ascii "99"
Setting key to 67, c
KeySym is c
isOK is 1
isMod is 0
encoding is iso8859-1
Using codec ISO 8859-1
ISOEncoded returning value 99
action first set to [88]
action now set to [31]
Key [action=31][M-c c]

On Windows, however, "M-c" gives:

Press key 4131 text "none", ascii "0"
keyevent has isNull() text !
KeySym is Alt_R
isOK is 1
isMod is 1
isModifier true

Press key 0 text "none", ascii "0"
keyevent has isNull() text !
KeySym is
isOK is 1
isMod is 0
encoding is iso8859-1
Using codec ISO 8859-1
ISOEncoded returning value 0
action first set to [-1]
action now set to [-1]
Key [action=-1][M-]
text_ empty, isText() == false
Unknown, !isText() - giving up

So, somehow, the Alt key is messing up the key code returned when the "c"
is pressed (67 -> 0).

HTH,
Angus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.