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

Modifier for altgr #139

Merged
merged 3 commits into from
Sep 4, 2021
Merged

Modifier for altgr #139

merged 3 commits into from
Sep 4, 2021

Conversation

elferherrera
Copy link
Contributor

Added clause to consider special modifier for non english keyboards

@@ -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 => {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@sophiajt
Copy link
Contributor

sophiajt commented Sep 4, 2021

Just fixed CI for reedline, so in theory the next change should pick it up

@sophiajt sophiajt merged commit 1233b45 into nushell:main Sep 4, 2021
sholderbach pushed a commit that referenced this pull request Nov 6, 2021
Support for Shift-AltGr is required for several European keyboards (e.g. italian) #169 #136 #139 #171

* Curly braces fix

* Curly braces fix for vim events

Co-authored-by: Antonio Natilla <antonio.natilla@studenti.unimi.it>
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