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

[keys] use prettykeys internally for input bindings and other getkeystroke uses #2594

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

saulpw
Copy link
Owner

@saulpw saulpw commented Nov 4, 2024

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.

@anjakefala anjakefala force-pushed the pw24_prettykeys_internal branch from 13cc49c to 0b63a1b Compare November 6, 2024 04:23
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)
Copy link
Collaborator

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

@anjakefala
Copy link
Collaborator

anjakefala commented Nov 6, 2024

I also tested Shift+Z and Shift+F and neither are working! I believe none of the Shifts are working.

Spacebar is also not working.

@@ -212,7 +212,6 @@ def mainloop(vd, scr):
vd.warning('duplicate prefix: ' + keystroke)
vd.keystrokes = ''
else:
keystroke = vd.prettykeys(keystroke)
Copy link
Collaborator

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants