Page 2 of 2

Re: International keyboards

Posted: Sun Jan 31, 2021 2:28 pm
by ProphetOfDoom
Hi there everyone,
Thanks for your input. I haven’t been able to test Texas Instruments’ code yet because it’s a really hectic time for me (I’m currently moving house). But yes, generally I thought this would be an issue and none of PB’s APIs seemed to address this particular use case. It’s not as simple as it sounds at first.
If TI’s code doesn’t work I think I will file a feature request.
IdeasVacuum: the thing is, I want the user to be able to click the buttons OR type the expressions in with the keyboard. Because users will expect this. I think it’s called the “principle of least surprise” - apps should work how the user imagines they should work. I don’t really want to ask the user to calibrate the input. The last time I had to calibrate a device was a joystick I used to play Magic Carpet on MS DOS!!!
Stargate, have you tested TI’s code with your German keyboard?
The problem is I’m in the UK and only speak English!
Thanks again everyone!

Re: International keyboards

Posted: Sun Jan 31, 2021 3:16 pm
by STARGÅTE
ProphetOfDoom wrote:Stargate, have you tested TI’s code with your German keyboard?
Yes, but the problem is, on a german keyboard, a single ^ - Character is not valid.
If I press ^, ´ or ` , the application waits for the next character (usually an a, e, i, o, or u, to generate á, ê, ù, ...).
That means, I have to press two times the [^]-key to generate an event.
The event of the first [^]-key is only sent after the second key

Re: International keyboards

Posted: Sun Jan 31, 2021 4:13 pm
by TI-994A
STARGÅTE wrote:[...on a german keyboard, a single ^ - Character is not valid.
If I press ^, ´ or ` , the application waits for the next character...
The German QWERTZ keyboards and French AZERTY keyboards implement two-stroke actions for the caret [^] key. This is to facilitate accented entries for their extended alphabets.

Nevertheless, these characters are input simply by typing their keys followed by the spacebar, and they are recognised correctly by the canvas input in my example.

Re: International keyboards

Posted: Sun Jan 31, 2021 4:30 pm
by fluent
Strangely enough, my keyboard has 2 caret keys. One is Ctrl+Alt+6 and the other one has its own key, right next to P.

Re: International keyboards

Posted: Sun Jan 31, 2021 4:49 pm
by ChrisR
TI-994A wrote:The German QWERTZ keyboards and French AZERTY keyboards implement two-stroke actions for the caret [^] key. This is to facilitate accented entries for their extended alphabets.

Nevertheless, these characters are input simply by typing their keys followed by the spacebar, and they are recognised correctly by the canvas input in my example.
Yes and your example works perfectly with the French keyboard and the two ways to have the caret symbol:
Alt Gr + 9 or the caret keys (right next to P) followed by the spacebar

Re: International keyboards

Posted: Sun Jan 31, 2021 4:51 pm
by Marc56us
Yes, french keyboard have 2 ^

One for accent ( two-stroke actions ^ and ¨) (left to P)
One for ^ (sigle key Shift + 9) Chr(94)

The main used keyboard (blue = Alt Gr, Red = two-stroke actions)
https://fr.wikipedia.org/wiki/AZERTY#/m ... ce_New.svg

:wink: