Skip to content

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants