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

Input bug on macOS #5397

Open
HorBro38 opened this issue Mar 7, 2024 · 0 comments
Open

Input bug on macOS #5397

HorBro38 opened this issue Mar 7, 2024 · 0 comments

Comments

@HorBro38
Copy link

HorBro38 commented Mar 7, 2024

It looks like the number pad is being treated as both arrow keys and numbers when using input on macOS. Taking the code from https://www.renpy.org/doc/html/input.html#text-input and adding a start statement allowed me to duplicate the issue:

define pov = Character("[povname]")

python:
    povname = renpy.input("What is your name?", length=32)
    povname = povname.strip()

    if not povname:
         povname = "Pat Smith"

pov "My name is [povname]!"

When you press the 4 key, you enter a 4 and then your cursor moves one to the left. Pressing a 6 will enter a 6 then move your cursor one to the right. Probably some how tied into the fact that Mac keyboards don't use numlock (expected behavior would to ignore the arrow inputs).

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

1 participant