edouardparis d7b8f53c1f
Merge #992: [GUI] Limit amount to 8 decimal digits
9415dc939080caa5bf41e93c8717dd0b75bb6a0e 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 9415dc9390.
  edouardparis:
    ACK 9415dc939080caa5bf41e93c8717dd0b75bb6a0e

Tree-SHA512: c8387e5fd9c3c030a71d0ba4a7aa3cd7f834215000f04e4e4d6b689c6bc9bf9dcecbf8b0799882f00f92d5bb8a656714f5149479e7f25e608a0ce96326a6e630
2024-03-20 18:37:43 +01:00
..
2024-03-20 12:41:54 +00:00
2023-08-30 16:01:30 +01:00
2024-01-16 16:17:29 +01:00
2023-12-12 18:33:50 +01:00
2024-03-05 11:32:10 +01:00
2024-02-02 14:46:22 +01:00