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

kivy TextInput does not work with windows clipboard #7699

Open
ghost opened this issue Nov 19, 2021 · 11 comments
Open

kivy TextInput does not work with windows clipboard #7699

ghost opened this issue Nov 19, 2021 · 11 comments
Assignees
Labels
Component: core-providers kivy/core Platform: Windows Type: Bug A bug or something not working as intended

Comments

@ghost
Copy link

ghost commented Nov 19, 2021

Software Versions

  • Python: 3.7
  • OS: windows 11
  • Kivy: 2.0.0
  • Kivy installation method:
    pip install kivy
    Describe the bug
    the windows clipboard does not work correctly with kivy TextInput as in the video

Expected behavior
to paste the text that we click on the board to the TextInput

To Reproduce

Code and Logs and screenshots

from kivy.app import App
from kivy.lang import Builder

kv = '''
BoxLayout:
   
    TextInput
'''


class TestApp(App):

    def build(self):
        return Builder.load_string(kv)


TestApp().run()

Additional context

2021-11-19-19-00-51.mp4
@misl6 misl6 added Component: core-providers kivy/core Platform: Windows Status: Needs-analysis Issue needs to be analyzed if it's real labels Nov 19, 2021
@p0lygun
Copy link
Contributor

p0lygun commented Dec 14, 2021

#6644
Can confirm, I have tried to solve this issue, will make a PR over the weekend

@Julian-O
Copy link
Contributor

@p0lygun so these two issues are duplicates?

@p0lygun
Copy link
Contributor

p0lygun commented Oct 31, 2023

@Julian-O yes

@ElliotGarbus
Copy link
Contributor

This works correctly on Kivy 2.2.1
I recommend closing this issue.

@Julian-O Julian-O closed this as completed Nov 2, 2023
@ReetiMauryaCrest
Copy link

This works correctly on Kivy 2.2.1 I recommend closing this issue.

I don't know if I am doing something wrong, but I am using Kivy 2.2.1 and still find the same behavior. When we press win + v, the clipboard opens but the selected items would not be pasted. We will have to again press ctrl + v to paste the selected text.

@Julian-O Julian-O reopened this Nov 21, 2023
@Julian-O
Copy link
Contributor

@ElliotGarbus: Would you care to comment?

@ElliotGarbus
Copy link
Contributor

I misspoke earlier. This is still an issue.
Here is the issue: Cut and paste using cntrl+c cnrtl+v works as expected.

The issue is when working with paste history on Windows. When pressing Win+v the paste history panel comes up (as shown in the video), Selecting a paste buffer should directly paste into the text input. It instead requires an additional cntrl-v to paste the selected paste buffer into the TextInput.

The TextInput requires an extra cntrl-v when pasting from the Windows clipboard history pallet.

@Julian-O Julian-O added Type: Bug A bug or something not working as intended and removed Status: Needs-analysis Issue needs to be analyzed if it's real labels Nov 22, 2023
@p0lygun
Copy link
Contributor

p0lygun commented Nov 22, 2023

i'll try to fix this over the weekend.

@ReetiMauryaCrest
Copy link

@Julian-O @p0lygun I am also facing issue in using "home" and "end" buttons in TextInput on windows. When I am using the TextInput and press "home" I want the cursor to move at the start of the text, but it is staying in the same place and not responding to the command. Same with the "end". Just wanted to inform so you can decide if this can be clubbed with this or needs to open another issue.

@Julian-O
Copy link
Contributor

@ReetiMauryaCrest: I'd like to see that as a separate issue. Please raise a bug report. Thank you.

@FilipeMarch
Copy link
Contributor

Just for confirming it is a Windows only issue, I've tested here on Linux and it works fine.

clipboard-linux-2023-11-23_12.15.44.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: core-providers kivy/core Platform: Windows Type: Bug A bug or something not working as intended
Projects
None yet
Development

No branches or pull requests

6 participants