InputBox doesn't hadle paste action correctly
Bug #1752820 reported by
Allan Chain
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Simple Game Code |
Triaged
|
High
|
Sam Bull |
Bug Description
I have copied letter'e' from elsewhere.When I pressed C-v , some number appeared,not the letter.
And i found this in sgc/widget/
text = [str(char) for char in text]
this probably doesn't run well,it returns a list of numbers.
BTW,on Windows,there're '\x00' in clipboard text sometimes,which pygame can't render properly.
Hope this can be fixed as well.
To post a comment you must log in.
I don't seem to be able to paste from another app at all in Pygame (on Linux), so I guess that's not been properly tested.
Where is that line of code? I can't find it in the mentioned file...
Maybe also check if it's not something wrong with Pygame. Copy something from another app first, then run:
print( pygame. scrap.get( SCRAP_TEXT) )
It should output what you copied. If not, register a bug against Pygame.