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!
International keyboards
-
- User
- Posts: 84
- Joined: Mon Jun 30, 2008 4:36 pm
- Location: UK
Re: International keyboards
Yes, but the problem is, on a german keyboard, a single ^ - Character is not valid.ProphetOfDoom wrote:Stargate, have you tested TI’s code with your German keyboard?
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
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: International keyboards
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.STARGÅTE wrote:[...on a german keyboard, a single ^ - Character is not valid.
If I press ^, ´ or ` , the application waits for the next character...
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.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

Re: International keyboards
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
Yes and your example works perfectly with the French keyboard and the two ways to have the caret symbol: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.
Alt Gr + 9 or the caret keys (right next to P) followed by the spacebar
Re: International keyboards
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

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
