XcodesApp
XcodesApp copied to clipboard
Add support for pasting the entire 2FA code
Goals
This PR adds support for pasting the entire 2FA code if the new string equals the length of the expected 2FA code. Currently, when pasting the 2FA code, only the last digit gets pasted.
Notes
I think it makes sense to have this behavior only if the user didn't enter any digit so that we can avoid any weird edge cases that could override their input, but let me know if you disagree.
Demo
https://user-images.githubusercontent.com/16192914/168834317-5358b584-261c-4f7f-93f3-0ededd350410.mov