= character not mapped?

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderator: Klaus

Zax
Posts: 519
Joined: Mon May 28, 2007 10:12 am
Contact:

= character not mapped?

Post by Zax » Wed Mar 27, 2024 9:04 am

Hello,

I have been using LC for many years so I have experienced different versions of LC on different Macs but I always had the same problem: the "=" key on the numeric keypad does not work in LC. It doesn't word in fields, nor in the script editor, nor in LC standalones.
I have always used wired versions of Apple's Magic Keyboard Extended keyboards in the Azerty version. I have had several of these keyboards.
This "=" key works perfectly on all other software I use.
So, it's not a mechanical keyboard problem.
It's not a problem specific to LC version 9.6.11.

This touch "=" returns a rawKeyCode of 65469 but the "=" character is not mapped.
Fortunately, the "=" key on the alpha keyboard (61) works, but it's not very convenient because I'm used to inserting an "=" with the numeric keyboard.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 10:25 am

That is very odd as I have just inserted "=" from the numeric keypad both in a field and in the scriptEditor.

MacOS 12

Apple 2002 Pro Keyboard QWERTY LiveCode 9.6.3
-
Screenshot 2024-03-27 at 11.24.03.png
Screenshot 2024-03-27 at 11.24.03.png (17.82 KiB) Viewed 1762 times
-
Attachments
Key Grab.livecode.zip
Stack
(933 Bytes) Downloaded 53 times

Zax
Posts: 519
Joined: Mon May 28, 2007 10:12 am
Contact:

Re: = character not mapped?

Post by Zax » Wed Mar 27, 2024 11:33 am

Using your stack richmond92, I have:
= (alpha) --> 61
/ (numeric) --> 65455
= (numeric) --> 65469, but the bottom field is not updated, so my LC doesn't know what to do with this rawKeyCode on my OS on my machine.
In fact, as this oddity appears since several years and as I change my LC versions, my OS and my Mac laptop, I should say "so my LCs doesn't know what to do with this rawKeyCode on my OSes on my machines".

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 11:55 am

Have you tried attaching another, different, keyboard to your computer and trying that?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: = character not mapped?

Post by bn » Wed Mar 27, 2024 11:57 am

Hi Zax,

maybe this is related to bug:

https://quality.livecode.com/show_bug.cgi?id=20432

Kind regards
Bernd

Zax
Posts: 519
Joined: Mon May 28, 2007 10:12 am
Contact:

Re: = character not mapped?

Post by Zax » Wed Mar 27, 2024 12:38 pm

No, richmond62. I only have 2 Apple Magic Keyboard.
I also have an old Logitech ADB keyboard ;)

Thanks Bernd for the link.



EDIT : juste tested on an old MacAlly icekey: same problem.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 1:01 pm

Run round the corner and buy a 'rubbish' USB keyboard for €5 and see what happens.

I have just tried pressing the '=' sign on my Keypad using the "German standard" Macintosh keyboard layout ( QWERTZ ) and got the '=':
-
German=.jpg
-
I CANNOT find a German AZERTY layout in the Mac Keyboard layouts on my machine:

(admittedly that is because I am a bit stupid and had forgotten that AZERTY keyboards are pour les Francophones!
-
keyBzzzz.jpg
-
https://discussions.apple.com/thread/25 ... ortBy=best

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 1:18 pm

Mais, Je n'ai pas un problem avec le clavier Francophone:
-
Francophone.jpg

Zax
Posts: 519
Joined: Mon May 28, 2007 10:12 am
Contact:

Re: = character not mapped?

Post by Zax » Wed Mar 27, 2024 2:07 pm

richmond62 wrote:
Wed Mar 27, 2024 1:18 pm
Mais, Je n'ai pas un problem avec le clavier Francophone:
-
Francophone.jpg
Should I go to Bulgaria to buy a 5 euros keyboard in order to have a correct "=" in LC? :|
Maybe you could consider importing 5 euros keyboards from the shop around the corner to France.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 2:33 pm

amazon.fr
-
Screenshot 2024-03-27 at 15.31.29.png
-
Ce n'est pas €5, mais ce n'est pas cher. 8)

Personellement, mon expérience avec TRUST; leur produits sont de la merde, et aprés un mois . . . mais, pour un petit experiment . . . :wink:
Last edited by richmond62 on Wed Mar 27, 2024 2:37 pm, edited 1 time in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: = character not mapped?

Post by dunbarx » Wed Mar 27, 2024 2:36 pm

My "=" button works fine for character entry from either location, using a standard 109 key Apple keyboard.

Craig
Last edited by dunbarx on Wed Mar 27, 2024 2:40 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 2:38 pm

There is a myth (that I just invented) that, on his death bed Steve Jobs bought curses down on the French and their keyboard layouts. 8)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 2:44 pm

Sorry: the cheapest keyboard I could find here in Bulgaria is priced at 10.90 leva = €5.50.
-
Screenshot 2024-03-27 at 15.40.08.png
-
https://techmart.bg/%D0%9A%D0%BB%D0%B0% ... 0%B8-659-1

You fly into Sofia early, pop into "Techmart" in Sofia, pick up the keyboard, and fly out again in the afternoon: according to flights from Lyons and Paris the keyboard might only cost you 10 times the one available on French Amazon. :D

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10076
Joined: Fri Feb 19, 2010 10:17 am

Re: = character not mapped?

Post by richmond62 » Wed Mar 27, 2024 2:49 pm

a standard 109 key Apple keyboard
That word 'standard' seems a bit moot at the moment.

65469 is 0xFFBD in hexadecimal, and if one goes here:

https://unicode.org/charts/

one finds that the Unicode address FFBD contains a Korean glyph:
-
Screenshot 2024-03-27 at 15.53.35.png
Screenshot 2024-03-27 at 15.53.35.png (8.15 KiB) Viewed 1733 times
-
So: quite obviously, MacOS "normally' (i.e. NOT on Zak's machine) does some 'magic' to deliver an '=' sign.
-
Screenshot 2024-03-27 at 15.56.40.png
-
I wonder IF Zak had a font that contained the necessary Hangul characters offering char 65469 whether he would not end up with a '' everytime he pressed the '=' on his number pad.

If that were the situation it would make me think that the 'magic' of producing an '=' from a rawKey 65469 had to be performed by each program rather than the MacOS itself: OR, in some way, LiveCode over-rides the MacOS key processing and then does NOT do the processing itself for that value.
Last edited by richmond62 on Fri Mar 29, 2024 8:52 am, edited 1 time in total.

Zax
Posts: 519
Joined: Mon May 28, 2007 10:12 am
Contact:

Re: = character not mapped?

Post by Zax » Wed Mar 27, 2024 3:06 pm

richmond62 wrote:
Wed Mar 27, 2024 2:49 pm
I wonder IF Zak had a font that contained the necessary Hangul characters offering char 65469 whether he would not end up with a '' everytime he pressed the '=' on his number pad.
Envery time I press the numeric =, I have a... = everywhere, except in LC IDE and standalones.
When I code in PHP, I often use this key, as there is a typed test: if ($tVar === 'test')...
Fortunately for me, LC is not a typed language ;)
richmond62 wrote:
Wed Mar 27, 2024 2:38 pm
There is a myth (that I just invented) that, on his death bed Steve Jobs bought curses down on the French and their keyboard layouts. 8)
And German too (as Klaus encounter the same issue).

Post Reply