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

Ctrl-DELETE is not recognised #104

Closed
tpoliaw opened this issue Oct 8, 2017 · 3 comments
Closed

Ctrl-DELETE is not recognised #104

tpoliaw opened this issue Oct 8, 2017 · 3 comments

Comments

@tpoliaw
Copy link
Contributor

tpoliaw commented Oct 8, 2017

I am running a loop as shown in the examples:

with Input() as keys:
    for key in keys:
        print(key)

DELETE is recognised as expected but Ctrl-DELETE is not printed until the next character when it is shown as ^[[3;5~.

Adding the tuple (b"\x1b[3;5~", u'<Ctrl-DELETE>') to curtsieskeys.py fixes the problem for me but I'm not sure whether it'd cause problems elsewhere.

Let me know if there's a better way of handling this.
Thanks

@thomasballinger
Copy link
Member

Hm this should be fine. Feel free to open a PR, or I'll try to get to it next time I have an open source Saturday :) Thanks for reporting!

@thomasballinger
Copy link
Member

whoops tab took me to the wrong button first

@tpoliaw
Copy link
Contributor Author

tpoliaw commented Oct 26, 2017

Should be fixed by #106

@tpoliaw tpoliaw closed this as completed Oct 26, 2017
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