You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been experimenting with building a custom keyboard layout using the nightly build.
I've noticed that when I define keys to output an entire word, I get weird results in some circumstances.
Imagine I have the following two keys defined:
- type: base
spec: "hello"
moreKeys: "world"
- "test"
This mostly works as I'd expect - I get a "hello" key which I can long-press to turn it into a "world" key, and I also get a "test" key.
But: sometimes, when I press one of these keys and then the other, I get the first letter from the first keypress prefixed onto the correct output from the second.
Note that this does not seem to happen in the test area inside the layout editor, you have to go into a different text-editing application to see it. I also think it only applies when the key is pressed at the start of a new sentence (i.e when the word would be capitalised)
To reproduce, try this:
define the keys above
go into an application where you can edit text. I've been seeing it in Signal, my SMS app, and my notes app, but I believe any text editor should do.
position the cursor at the start of a new line
press the 'hello' key, observe correct output of "HELLO" (capitalisation isn't perfect, but that's a separate issue)
press backspace a bunch of times to delete the "HELLO" output and put your cursor back on the start of the line
press the "world" key, observe the bug: output will be "HWORLD", prefixing the "H" from hello to the correct output.
This can be fixed by closing the keyboard and re-opening it, or it seems by moving the cursor away from the start of the line. The problem seems to happen most consistently when the words are capitalised on the keyboard and you are at the start of a line of text.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I've been experimenting with building a custom keyboard layout using the nightly build.
I've noticed that when I define keys to output an entire word, I get weird results in some circumstances.
Imagine I have the following two keys defined:
This mostly works as I'd expect - I get a "hello" key which I can long-press to turn it into a "world" key, and I also get a "test" key.
But: sometimes, when I press one of these keys and then the other, I get the first letter from the first keypress prefixed onto the correct output from the second.
Note that this does not seem to happen in the test area inside the layout editor, you have to go into a different text-editing application to see it. I also think it only applies when the key is pressed at the start of a new sentence (i.e when the word would be capitalised)
To reproduce, try this:
Thanks!
The text was updated successfully, but these errors were encountered: