Giter VIP home page Giter VIP logo

Comments (3)

MrS0m30n3 avatar MrS0m30n3 commented on May 13, 2024

With the current code state this is not possible (as far as i can think of right now) without keeping the insert state in a third variable (basically you can use the wx IsModified() method to detect when the text is modified by the user but even then you need to also detect the backspace else a new line gets added when you press backspace) and i am not going to edit the EVT_TEXT handler, so just hit Enter.

This behavior will change on the new GUI where you will have a single line textctrl and when you paste the url the textctrl will autoclear itself to be ready for the next url.

UPDATE
Basically it was easier than i though i just had to overwrite the default Paste() method. I don't really like using the clipboard but now it should automatically add a newline after pasting.

I am closing this issue.

from youtube-dl-gui.

 avatar commented on May 13, 2024

Thanks, works when pasting via context menu, but not when pasting selected text with middle mouse button, which is a linux feature

from youtube-dl-gui.

MrS0m30n3 avatar MrS0m30n3 commented on May 13, 2024

@ThebestwaytodesignJoinGitHub

I am closing this issue.
Now the middle mouse click automatically adds a newline when you paste urls.

Give it a try and feel free to re-open the issue if you have any problems.

from youtube-dl-gui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.