Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #992: [GUI] Limit amount to 8 decimal digits
9415dc9 new_amount_btc (pythcoiner) Pull request description: This PR replace #977 and fixes #798 I've followed jp1ac4 advice and create a `Form::new_amount_btc()` method that act like `Form::new_trimmed()` ~w/ few more (filtering) features:~ ~- allow only input of "0123456789,." characters~ ~- "," is replaced by "."~ ~- only one "." separator~ ~- maximum 8 digit after separator~ ~these features works for keyboard input or paste~ ~i've tryied to add a "0" in case the String start with a "." but this make the cursor have a bad location and i do not find a way to control the cursor location w/ iced, so i revert this feature~ ACKs for top commit: jp1ac4: ACK 9415dc9. edouardparis: ACK 9415dc9 Tree-SHA512: c8387e5fd9c3c030a71d0ba4a7aa3cd7f834215000f04e4e4d6b689c6bc9bf9dcecbf8b0799882f00f92d5bb8a656714f5149479e7f25e608a0ce96326a6e630
- Loading branch information