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

Fix: Paste not working on iOS and desktop (Right Click -> Paste) #498

Closed
wants to merge 1 commit into from

Conversation

Lakshya0257
Copy link

PR Description

In iOS and Desktop, right click paste (double tap paste) was not working, along with no error was fired during the event.

Expected behaviour
The copied text should be pasted into the text field on right click paste event.

Related Issues

#490

Reason

ExtendedTextField used for highlighting the variables in the fields like url, header value, param value etc, but the widget does not have a default function like right click paste. Normal TextField works as intended but the text highlighting of variables to red like {{url}}/endpoint is not possible.

Added/updated tests?

  • Edited and extended the default TextEditingController class for highlighting the variables, and enabling the default Ctrl+V along with right click paste option.
  • Changed the ExtendedTextField to default TextField for fixing the issue.

Output

Recording.2024-11-13.110351.mp4

@Lakshya0257
Copy link
Author

@ashitaprasad can you please review it.

@ashitaprasad
Copy link
Member

Environment variable colouring is incorrect.
Kindly use the environment variables feature to understand how the colouring works.

@Lakshya0257
Copy link
Author

Sorry but I don't quite understand, as I think the environment variables ( {{...}} ) should have red color.

@ashitaprasad
Copy link
Member

Red color is only for those environments variables whose values are not defined.

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

Successfully merging this pull request may close these issues.

2 participants