Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language and numeric sign #771

Open
Jazain opened this issue Feb 13, 2020 · 1 comment
Open

Language and numeric sign #771

Jazain opened this issue Feb 13, 2020 · 1 comment
Labels

Comments

@Jazain
Copy link

Jazain commented Feb 13, 2020

Hi,
I have a keyboard configured with:

{
    "layout": "custom",
    "language": "it-IT",
    "customLayout": {
        "normal": [
            "7 8 9 {b}",
            "4 5 6 {clear}",
            "1 2 3 {sign}",
            "{dec} 0 {a}"
        ]
    }
}

Pressing the sign button when the content has decimals with EU separator "123,45" doesn't change the sign. The regex /^[+-]?\d*\.?\d*$/ prevents the action.

@Mottie
Copy link
Owner

Mottie commented Feb 13, 2020

Hi @Jazain!

Thanks for reporting this problem. I'll get it fixed in the next update.

In the mean time, you can redefine the sign function by modifying $.keyboard.keyaction.sign before initializing the keyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants