Recent

Author Topic: Lazarus 2.0.0, cocoa widgetset, macosx and french keyboard...  (Read 2144 times)

Visium

  • Newbie
  • Posts: 3
Lazarus 2.0.0, cocoa widgetset, macosx and french keyboard...
« on: February 21, 2019, 03:53:20 pm »
Hello everyone,

I am a MacOSX user using a french keyboard. Here is my problem: I have recompiled the Lazarus 2.0.0 IDE with the cocoa widget set. When I input text in any window (a text editor window for instance), characters such as ^, #, @, ` are not recognized/do not appear when the corresponding key on the french keyboard is pressed.
I also have compiled an application (with the cocoa widget set) which contains a text editor window and the same problem occurs.
If I switch to "english keyboard", everything works fine.

Has anyone encountered this problem? Or has a suggestion for a solution?

Thanks !!!


skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 2.0.0, cocoa widgetset, macosx and french keyboard...
« Reply #1 on: February 21, 2019, 04:13:16 pm »
The topic somewhat came up in a recent discussion.
Could you please provide more details?!

Specifically - what the expected result.

Visium

  • Newbie
  • Posts: 3
Re: Lazarus 2.0.0, cocoa widgetset, macosx and french keyboard...
« Reply #2 on: February 21, 2019, 04:39:25 pm »
Thanks for your reply.

Let's say I want to type the following string in a text editor window:  n^2
I have three keys to press on the french keyboard to get it. But with the Lazarus IDE 2.0.0 (cocoa) or possibly any (though I tried only one) application compiled still using the cocoa widget set, I only get n2: the ^ key does nothing in that case.
So:
result obtained = n2   while   expected result = n^2
However, if I switch the OS to use an english keyboard, then the corresponding ^ key is recognized so I get the expected result.

I hope I was clear enough and I answered your question.

Visium

  • Newbie
  • Posts: 3
Re: Lazarus 2.0.0, cocoa widgetset, macosx and french keyboard...
« Reply #3 on: February 26, 2019, 08:22:15 am »
I have another question: does the cocoa library take into account dead keys? If the answer is no, that could explain the initial problem.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Lazarus 2.0.0, cocoa widgetset, macosx and french keyboard...
« Reply #4 on: April 20, 2019, 07:04:48 am »
the answer is "it depends"
I'd think that native controls such as TMemo or TEdit would recognize those.

The custom written edit controls, i.e. TSynEdit (the editor you see in IDE itself) might NOT recognize them


 

TinyPortal © 2005-2018