ALT GR keys don't get captured #591

Open
opened 2020-06-02 19:25:17 +02:00 by LB45440078L · 6 comments
LB45440078L commented 2020-06-02 19:25:17 +02:00 (Migrated from github.com)

OS: Hackintosh Catalina 10.15.3
Shell: ZSH 5.7.1
I am using Italian keyboard layout.
Whenever i try to write characters such as '#', '@' that would normally require the combo
ALT GR + <key> , it does not work. I tried with default terminal from macOS and they do work. Any idea on how to fix this?

OS: Hackintosh Catalina 10.15.3 Shell: ZSH 5.7.1 I am using Italian keyboard layout. Whenever i try to write characters such as '#', '@' that would normally require the combo ALT GR + \<key> , it does not work. I tried with default terminal from macOS and they do work. Any idea on how to fix this?
FernandoGV667 commented 2020-06-19 10:22:48 +02:00 (Migrated from github.com)

OS: macOS Mojave
Shell: ZSH 5.8
Spanish keyboard layout
Same issue with Alt key. Works fine with iterm

OS: macOS Mojave Shell: ZSH 5.8 Spanish keyboard layout Same issue with Alt key. Works fine with iterm
benediktsattler commented 2020-08-27 14:31:01 +02:00 (Migrated from github.com)

Don't have a solution but as a workaround you can press control+option / control+alt to get on the alt Graph layer. This is basically what the right alt key is mapped to when on an iso layout profile.

Don't have a solution but as a workaround you can press control+option / control+alt to get on the alt Graph layer. This is basically what the right alt key is mapped to when on an iso layout profile.
bananflugan commented 2020-09-24 16:27:01 +02:00 (Migrated from github.com)

I have the exact same problem as OP. Using swedish layout and cannot make @£$ etc in cool retro term.
OS: Catalina 10.15.6 on a Macbook Pro.

I have the exact same problem as OP. Using swedish layout and cannot make @£$ etc in cool retro term. OS: Catalina 10.15.6 on a Macbook Pro.
rtauziac commented 2022-02-14 10:51:03 +01:00 (Migrated from github.com)

Still an issue on 1.2.0

OS: Big Sur 11.6

I’m using an alternate keyboard layout (BÉPO) and a lot of keys are hidden behind the Alt modifier (ex: {, }, &, |, _, …).

1.2.0 is a huge and awesome improvement but unfortunately still unusable in the current state 🙁

Still an issue on 1.2.0 **OS:** Big Sur 11.6 I’m using an alternate keyboard layout (_BÉPO_) and a lot of keys are hidden behind the Alt modifier (ex: {, }, &, |, \_, …). 1.2.0 is a huge and awesome improvement but unfortunately still unusable in the current state 🙁
rtauziac commented 2022-02-28 14:44:11 +01:00 (Migrated from github.com)

Well I tried modifying the source code, I cloned the osx-fixes branch and commented a couple lines about alt modifiers on qmltermwidget/lib/Vt102Emulation.cpp l.1108:

//if ( modifiers & Qt::AltModifier && !(wantsAltModifier || wantsAnyModifier)
//     && !event->text().isEmpty() )
//{
//    textToSend.prepend("\033");
//}

and now it works like a charm 👌, not sure about this special handling mentioned above in the code 🤷‍♀️.

But once I copy the compiled executable inside /Applications, the issue comes back with some character display issue, quite stange.

Well now that I can type everything in the terminal I’m happy 😄

Edit: I have to launch it from the terminal in order to not have the previously described bug.

Well I tried modifying the source code, I cloned the `osx-fixes` branch and commented a couple lines about alt modifiers on `qmltermwidget/lib/Vt102Emulation.cpp` l.1108: ```cpp //if ( modifiers & Qt::AltModifier && !(wantsAltModifier || wantsAnyModifier) // && !event->text().isEmpty() ) //{ // textToSend.prepend("\033"); //} ``` and now it works like a charm 👌, not sure about this _special handling_ mentioned above in the code 🤷‍♀️. But once I copy the compiled executable inside `/Applications`, the issue comes back with some character display issue, quite stange. Well now that I can type everything in the terminal I’m happy 😄 _Edit:_ I have to launch it from the terminal in order to not have the previously described bug.
bananflugan commented 2022-03-07 21:16:55 +01:00 (Migrated from github.com)

I have compiled a build from the master branch with these fixes which so far has shown 0 issues. I have created a dmg file as well if anyone would like to use it.

I have compiled a build from the master branch with these fixes which so far has shown 0 issues. I have created a dmg file as well if anyone would like to use it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#591
No description provided.