Re: keyboard input broken for certain extended characters
Fred Kiefer <[email protected]> Tue, 23 Jul 2024 22:38:04 +0200
| Newsgroups | gmane.comp.lib.gnustep.devel |
|---|---|
| Message-ID | <[email protected]> |
i can only clear up tiny fractions of the problem. While the pound sign = is U+00A3 this corresponds to the UTF byte sequence C2 A3. And if I = remember correctly the byte sequence for the incorrect characters on = your machine was C2 C2 A3. As for your event logging the result is rather frustrating. For the more = important events no real information gets displayed. Looks like you will = have to add some more output there. Debugging a guy application never = worked for me :-( Hope that you make some progress on that, Fred > Am 23.07.2024 um 00:13 schrieb Riccardo Mottola = <[email protected]>: >=20 > Hi, >=20 > on suggestion of Fred, I tried to debug things a little more. >=20 > First, I can put in a =C2=A3 sign using the character mapping of the = font > panel and it works. > Second, if the character is in the file, it gets displayed correctly > Third, if I export display and type in from elsewhere, it works >=20 > Unicode for pound sing would be U+00A3 > Unicode for A circumflex is U+00C2 > Unicode for A tilde is U+00C3 >=20 > x82 is "no break here" >=20 > I don't fully understand why we add c2 when having the "working" pound > sign, but in the other case, we add a full c282 when typing. >=20 > The pound sign is written c2a3 The extra sign seen is in hex c382 >=20 > On my keyboard to type the pound sign I need to type Shift-3. >=20 > Riccardo Mottola wrote: >> Pound sign: =C3=82=C2=A3 >=20 > This is my attempt at debug event: >=20 >=20 > 2024-07-22 23:43:43.650 Ink[37089:100686] 12582955 KeyPress > 2024-07-22 23:43:43.650 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D flagsChanged, point =3D { 292.000000, 544.000000 }, = modifiers > =3D 131072, time =3D 16204.004000, window =3D 6, dpsContext =3D = 0x85f3a89c8, > repeat =3D NO, keys =3D (null), ukeys =3D (null), keyCode =3D 0x32 to = <NSWindow: > 0x867d5e008>Number: 6 Title: Senza-Titolo-1 > 2024-07-22 23:43:43.917 Ink[37089:100686] 12582955 KeyPress > 2024-07-22 23:43:43.917 Ink[37089:100686] send key down event > 2024-07-22 23:43:44.041 Ink[37089:100686] 12582955 KeyRelease > 2024-07-22 23:43:44.041 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D appKitDefined, point =3D { -1.000000, -1.000000 }, = modifiers =3D > 0, time =3D 0.000000, window =3D 6, dpsContext =3D 0x85f3a89c8, = subtype =3D -1, > data1 =3D 0, data2 =3D 0 to <NSWindow: 0x867d5e008>Number: 6 Title: > Senza-Titolo-1 > 2024-07-22 23:43:44.048 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D cursorUpdate, point =3D { 292.000000, 544.000000 }, = modifiers > =3D 0, time =3D 0.000000, window =3D 6, dpsContext =3D 0x85f3a89c8, = subtype =3D > 0, data1 =3D 1, data2 =3D 8726a4138 to <NSWindow: 0x867d5e008>Number: = 6 > Title: Senza-Titolo-1 > 2024-07-22 23:43:44.048 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D cursorUpdate, point =3D { 292.000000, 544.000000 }, = modifiers > =3D 0, time =3D 0.000000, window =3D 6, dpsContext =3D 0x85f3a89c8, = subtype =3D > 0, data1 =3D 1, data2 =3D 8726a5c18 to <NSWindow: 0x867d5e008>Number: = 6 > Title: Senza-Titolo-1 > 2024-07-22 23:43:44.048 Ink[37089:100686] send key up event > 2024-07-22 23:43:44.166 Ink[37089:100686] 12582955 KeyRelease > 2024-07-22 23:43:44.166 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D flagsChanged, point =3D { 292.000000, 544.000000 }, = modifiers > =3D 0, time =3D 16204.520000, window =3D 6, dpsContext =3D = 0x85f3a89c8, repeat > =3D NO, keys =3D (null), ukeys =3D (null), keyCode =3D 0x32 to = <NSWindow: > 0x867d5e008>Number: 6 Title: Senza-Titolo-1 > 2024-07-22 23:43:46.476 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D cursorUpdate, point =3D { 405.000000, 560.000000 }, = modifiers > =3D 0, time =3D 0.000000, window =3D 6, dpsContext =3D 0x85f3a89c8, = subtype =3D > 0, data1 =3D 0, data2 =3D 8726a5c18 to <NSWindow: 0x867d5e008>Number: = 6 > Title: Senza-Titolo-1 > 2024-07-22 23:43:46.478 Ink[37089:100686] Send NSEvent type: NSEvent: > eventType =3D cursorUpdate, point =3D { 405.000000, 560.000000 }, = modifiers > =3D 0, time =3D 0.000000, window =3D 6, dpsContext =3D 0x85f3a89c8, = subtype =3D > 0, data1 =3D 0, data2 =3D 8726a4138 to <NSWindow: 0x867d5e008>Number: = 6 > Title: Senza-Titolo-1 >=20 > I'm unable to read that. The KeyCode is not always preset and 0x32 is = 2. > However, I should see the keys for "shift" and "3" >=20 > Riccardo >=20