dessalines / thumb-key

A privacy-conscious Android keyboard made for your thumbs
GNU Affero General Public License v3.0
1.02k stars 217 forks source link

"@" character doesn't work on spanish MessagEase layout alphabetic layers #759

Closed asdkant closed 8 months ago

asdkant commented 8 months ago

Steps to reproduce

  1. (configure and) switch to "español messagease"
  2. try to type @ character (bottom-left swipe from "R") on lower or upper case alphabetic layers

Expected behavior

@ is detected

Actual behavior

Either nothing is detected, or the tap symbol (R or r) is detected. The symbol on the numeric layer works fine.

version of the program

2.6.18

Android version

14 (OneUI 6.0)

Device

Samsung Galaxy S21 FE

Other details

This looks like thumb-key is not parsing the layer definition correctly. I checked the code and the layout definition seems correct:

Also tested and reproduced on:

So it doesn't seem to be device-specific.

Acknowledgements

dessalines commented 8 months ago

Probably has to do with an incorrect swipetype.

asdkant commented 8 months ago

You mean the SwipeDirection.BOTTOM_LEFT thing? But that's correct:

// lower case
SwipeDirection.BOTTOM_LEFT to
    KeyC(
        display = KeyDisplay.TextDisplay("@"),
        action = KeyAction.CommitText("@"),
        color = ColorVariant.MUTED,
    ),
// upper case
SwipeDirection.BOTTOM_LEFT to
    KeyC(
        display = KeyDisplay.TextDisplay("@"),
        action = KeyAction.CommitText("@"),
        color = ColorVariant.MUTED,
    ),
// numeric
SwipeDirection.BOTTOM_LEFT to 
    KeyC(
        display = KeyDisplay.TextDisplay("@"), 
        action = KeyAction.CommitText("@")
    ),
asdkant commented 8 months ago

How can I properly debug this issue?

dessalines commented 8 months ago

This is incorrect, it needs to be fixed by removing that line (so it uses the default all swipe directions) https://github.com/dessalines/thumb-key/blob/main/app/src/main/java/com/dessalines/thumbkey/keyboards/ESMessageEase.kt#L206

asdkant commented 8 months ago

Ohh, ok, I get it now. I'm working on some changes to this keybard (a rework on the placement of ¿ and ¡ mostly, I've been test driving it for a few days) so I'll include it there and do the PR later today if nobody fixes it before