-
Notifications
You must be signed in to change notification settings - Fork 152
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
Modifier for altgr #139
Modifier for altgr #139
Conversation
@@ -33,6 +33,9 @@ impl EditMode for Emacs { | |||
| (KeyModifiers::SHIFT, KeyCode::Char(c)) => { | |||
ReedlineEvent::EditInsert(EditCommand::InsertChar(c)) | |||
} | |||
(m, KeyCode::Char(c)) if m == KeyModifiers::CONTROL | KeyModifiers::ALT => { |
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.
Since we look for Ctrl+c a few lines above this one, should we just look for ALT here?
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.
The thing is that in my keyboard the key alt gr
appear as a mixed KeyModifier called CONTROL | ALT
. This isnt a Control or Alt situation, it has to be both
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.
Oooh as a bitwise operation. Got it. I totally misread that this morning.
Just fixed CI for reedline, so in theory the next change should pick it up |
…to altgr-keymodifier
Added clause to consider special modifier for non english keyboards