Michael Van Canneyt wrote:
>
> On Sat, 30 Dec 2006, Marc Weustink wrote:
>
>> Michael Van Canneyt wrote:
>>> On Sat, 30 Dec 2006, Marc Weustink wrote:
>>>
>>>> Michael Van Canneyt wrote:
>>>>> On Sat, 30 Dec 2006, Marc Weustink wrote:
>>>>>
>>>>>> Michael Van Canneyt wrote:
>>>>>>> On Fri, 29 Dec 2006, Jesus Reyes wrote:
>>>>>> Both thanks for reporting. I've made some keyboard routines more strict.
>>>>>> In the old situation a random key could get reported.
>>>>> Did you fix the issue ?
>>>> No, otherwise I would have written that.
it should be fixed now in r10362.
[...]
>> so "xmodmap -pke | xmodmap -" sets the layout you currently have. And
>> nothing should change.
>
> Obviously not, see your own results :-)
In theory nothing should change, however I think there is something
wrong internally in X
I used XKeyCodeToKeysym to retrieve all keysyms and that function
appears to be broken.
I now switched to XGetKeyboardMapping to retrieve all in one go (is also
more efficient) and that one reports the correct values.
>>> I can send you the output of xmodmap -pke to you if that helps you ?
>>> The ones no longer working are these:
>> ...
>>> keycode 16 = egrave 7 braceleft seveneighths braceleft seveneighths
>> ...
>>
>> They look similar to the ones I get. For retrieving these codes myself,
>> I use the XKeyCodeToKeysym() function.
>> However for keycode 16 it returns:
>>
>> egrave 7 null null seveneighths null null null
>>
>> after running "xmodmap -pke | xmodmap -" it returns:
>>
>> egrave 7 braceleft seveneighths seveneighths null null null
>
> Haha, and you want me to run this ? Thank you ! ;-)
> Who knows what happens ? Maybe I end up with Dvorak ! ;-)
It is only a workaround, if you needed to continue.
Worst case you had to reset your X (ctrl-alt-backspace) and you could
continue.
> What was the original reason for wanting to change the behaviour ?
Rework/Cleanup to implement the correct keyhandling for gtk2, not based
on the keystring lookups as they currently work in gtk1 (as a side
effect of my recent debugging, I may have found a better handling for
gtk1 also)
> Everything worked fine till now ?
That seemed so, but it didn't. Due to this, KeyUp and KeyDown events
reported the wrong keys (if they reported a key at all)
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives