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

Decimal input using numeric pad's dot as decimal separator #133

Open
fergardi opened this issue May 19, 2021 · 1 comment
Open

Decimal input using numeric pad's dot as decimal separator #133

fergardi opened this issue May 19, 2021 · 1 comment

Comments

@fergardi
Copy link

Hello! Nice plugin!

I was wondering if it is possible to introduce a float number using the keyboard's numeric pad dot as decimal separator, even if I can configure the decimal separator to be the colon instead. Currently it only works if I press the colon key of the letters keyboard.

image

From this image, If I press '.' it does nothing, If I press ',' it jumps into the decimal section. I need it to accept the numeric pad '.' key.

This is my setup:

NgxCurrencyModule.forRoot({
      align: "right",
      allowNegative: false,
      allowZero: true,
      decimal: ",",
      precision: 2,
      prefix: "",
      suffix: "",
      thousands: ".",
      nullable: true,
      min: undefined,
      max: undefined,
      inputMode: CurrencyMaskInputMode.NATURAL,
}),

Thanks in advance.

@fergardi
Copy link
Author

I believe this has something to do with #78 but I cannot make it work.

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

No branches or pull requests

1 participant