-
-
Notifications
You must be signed in to change notification settings - Fork 319
[keys] use prettykeys internally for input bindings and other getkeystroke uses #2594
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
base: develop
Are you sure you want to change the base?
Conversation
13cc49c to
0b63a1b
Compare
| elif ch in ['^J', '^M']: return True # ENTER to accept value | ||
| elif ch == '^K': v = v[:i] # ^Kill to end-of-line | ||
| elif ch == '^N': | ||
| elif ch in ('Ctrl+H', 'Bksp', 'Ctrl+?'): i -= 1; v = delchar(v, i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got "no command for Ctrl+?" when I typed Backspace
|
I also tested Spacebar is also not working. |
| vd.warning('duplicate prefix: ' + keystroke) | ||
| vd.keystrokes = '' | ||
| else: | ||
| keystroke = vd.prettykeys(keystroke) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the removal of this line that broke spacebar (' ') and the shift keys!
- replace ^X with Ctrl+X - replace ALT and ENTER with strings
Replace legacy ^X with Ctrl+X and other curses KEY_ with internal prettykeys.
Does not replace bindings for commands, but everything else should use be using prettykeys now.