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

Text cursor outside of an TextInput field #1639

Closed
semmottos opened this issue Nov 25, 2013 · 0 comments
Closed

Text cursor outside of an TextInput field #1639

semmottos opened this issue Nov 25, 2013 · 0 comments
Assignees
Milestone

Comments

@semmottos
Copy link

Link to the outputs: https://gist.github.com/semmottos/7647031

OS: Mac OS X, Version 10.9

Program code:

import kivy
kivy.require('1.8.0') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.textinput import TextInput
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        b = BoxLayout()
        b.add_widget(Label(text='This is a Label!'))
        b.add_widget(TextInput(text='Hello world', multiline=False))
        return b

if __name__ == '__main__':
    MyApp().run()

Procedure to produce the error:

  1. Focus the text input field
  2. Keep pushing a key until the width is full and the text scrolls out of the field to the left.
  3. Select all with cmd-a
  4. Delete with backspace

Now the text cursor is shown somewhere on the label, the farther to the left the more characters have overflown the field width. Inputting one character after that shows not the character but positions the cursor at the start of the text field line. Input another char and push left arrow twice ==> You see both of the characters input.

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

No branches or pull requests

2 participants