Skip to content

Modifier for altgr#139

Merged
sophiajt merged 3 commits intonushell:mainfrom
elferherrera:altgr-keymodifier
Sep 4, 2021
Merged

Modifier for altgr#139
sophiajt merged 3 commits intonushell:mainfrom
elferherrera:altgr-keymodifier

Conversation

@elferherrera
Copy link
Copy Markdown
Contributor

Added clause to consider special modifier for non english keyboards

| (KeyModifiers::SHIFT, KeyCode::Char(c)) => {
ReedlineEvent::EditInsert(EditCommand::InsertChar(c))
}
(m, KeyCode::Char(c)) if m == KeyModifiers::CONTROL | KeyModifiers::ALT => {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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