Skip to content

cut. cop. paste. password type#375

Open
niminypiminy wants to merge 68 commits intoDioxusLabs:mainfrom
niminypiminy:pr-cut.-cop.-paste.-password-type
Open

cut. cop. paste. password type#375
niminypiminy wants to merge 68 commits intoDioxusLabs:mainfrom
niminypiminy:pr-cut.-cop.-paste.-password-type

Conversation

@niminypiminy
Copy link

The previous pull was fine, but to satisfy your concerns over the "hacky" comment I left in the code.

That code was just aborting early to solve the reported bug on linux. #355
However, if someone has a custom runtime, like me, then aborting will cause breaking changes.
That may be unfavorable to some folks.

I simply removed it. Problem solved.

The other code should be fine. Password- type is robust. Cut, copy, paste works, although it could be extended.
In regards to clippy and fmt complaints, you may edit/format as needed to achieve your preferred style.
This was done for my project. If it helps, merge it. If not, reject. No worries.

This fixes the open bug for segmentation core dump. surface should now drop properly on linux/wayland
added   
#[cfg(target_os = "linux")] 
so it only runs on linux
wayland data control for linux. (needed for cut, copy, paste)
element.rs: added shadow_text and is_password flag.
construct.rs: added type password & dots.
keyboard.rs: swap keys for dots
form.rs: hitting submit should extract plaint text, not dots.

tested on linux.
did not test on other OS.
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

Successfully merging this pull request may close these issues.

1 participant