Skip to content

Reassigning Ctrl+x ? #662

Answered by chrisant996
fiso64 asked this question in Q&A
Aug 17, 2024 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

@fiso64 I've debugged through it, and now I see what's going on...

Readline has code that tries to revert the shadow key issue when unbinding keys.

But there are four caveats:

  1. The code can only revert the shadow key issue when keys are bound to commands; not when they're bound to macros. That doesn't appear to be relevant in your case.
  2. The code can only revert one level of the shadow key issue at a time. That isn't relevant in your case, because the longest Ctrl-X key binding is only 2 keys long. But if there were any that were 3 or more long, then it would be a lot more complicated and persnickety about how to successfully fully revert them.
  3. The code can only revert the shadow key issue…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@chrisant996
Comment options

@chrisant996
Comment options

@fiso64
Comment options

@chrisant996
Comment options

Answer selected by fiso64
@fiso64
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants