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

Option to disable Ctrl + Alt = AltGr on International Keyboards #14535

Open
Eyji opened this issue Nov 18, 2021 · 8 comments
Open

Option to disable Ctrl + Alt = AltGr on International Keyboards #14535

Eyji opened this issue Nov 18, 2021 · 8 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager

Comments

@Eyji
Copy link

Eyji commented Nov 18, 2021

Description of the new feature / enhancement

The keyboard shortcuts inconsistency on Windows is a real productivity issue and I don't know how that's possible in 2021.
While we have the great Keyboard Manager with remapping capabilities, which is great to finally help me write faster, it does not help with an incredibly old and irritating issue from Windows, explained in this post.

A lot of apps use the Ctrl + Alt + 1 or 2 or 3 or 4 or 0 to quickly convert to a corresponding level header or revert to normal text. Even OneNote does it. (Except reverting to normal text is Ctrl + Shift + N: why ??)

But on international keyboards, Ctrl + Alt is associated to AltGr so instead of creating a 2nd level header, I get a lame "~" character.

There is no workaround other than creating a custom Keyboard Layout + using a AutoHotKey remapping.

Scenario when this would be used?

Non US keyboards + any shortcut using Ctrl + Alt + X

Supporting information

https://answers.microsoft.com/en-us/msoffice/forum/all/disable-ctrlalt-altgr/78fff2b4-c20c-4408-9547-e323114ae522?auth=1

(didnt help)

https://superuser.com/questions/217082/why-dont-the-google-docs-ctrl-alt-shortcuts-work

https://superuser.com/questions/592970/can-i-make-ctrlalt-not-act-like-altgr-on-windows

@Eyji Eyji added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Nov 18, 2021
@franky920920 franky920920 added Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager labels Nov 19, 2021
@crutkas crutkas removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Apr 20, 2022
@VladWinner
Copy link

VladWinner commented Jun 5, 2022

IMPORTANT UPDATE

One good developer BladeMight just offered his own workaround for international layouts (the best and trouble-free in my opinion) with Mahou app: at the time of typing Ctrl+Alt+ combinations, the keyboard layout will temporarily change to special one where the symbol mode doesn't involve duplicating AltGr to Ctrl+Alt.

Just open Mahou "Layouts" tab and enter in "Temporary change layout on LCtrl+LAlt combination" field: 67699721 (English US code), then click on "Apply" button.

@Eyji You can freely specify any other (desired) keyboard layout (without AltGr) code for a temporary change (but it makes no difference).

Download (x64): https://github.com/BladeMight/Mahou/releases/download/latest-commit/Release_x64.zip
Other builds: https://github.com/BladeMight/Mahou/releases/tag/latest-commit

Here are my settings:
image

@VladWinner
Copy link

VladWinner commented Jun 14, 2022

Addition

If someone undertakes to recreate the feature above: you can take a look at Mahou source code for the temporary layout change:
Initial code
https://github.com/BladeMight/Mahou/commit/0e935d1955319515b4c093102d1b77735d408ad9
UI + localization
https://github.com/BladeMight/Mahou/commit/8ab27cbeb49b160f9aa3e7c8ff6a648518ab5583
Load layouts that are not currently in system list of kbd layouts using WinAPI.(Un)loadKeyboardLayout
https://github.com/BladeMight/Mahou/commit/23c0dbccbe96842d025b3dbf8e37f2bcbf3d049e

@Baccanno
Copy link

Baccanno commented Oct 5, 2022

Does this help ? #21042

@StacktraceException
Copy link

StacktraceException commented Dec 4, 2022

What about the other way round? Like when typing text and AltGr is misinterpreted as ctrl+alt? This for example causes at almost random to do unintended actions in various programs. Seems like a fuck you from Microsoft towards non-English speakers. Because why the hell has this been going on for decades already? By such a gigantic company with gigantic revenues…

@sba923
Copy link

sba923 commented Aug 21, 2023

What about the other way round? Like when typing text and AltGr is misinterpreted as ctrl+alt? This for example causes at almost random to do unintended actions in various programs. Seems like a fuck you from Microsoft towards non-English speakers. Because why the hell has this been going on for decades already? By such a gigantic company with gigantic revenues…

Not non-English speakers, but people using non-US-layout keyboards: that's even more users 😜

Don't make the same mistake as Microsoft who forces someone willing to use English as the input language to install / use the US keyboard layout. Input language and keyboard layout are two different things and should be 100% independent.

@DanteMarshal
Copy link

uh, any updates on this ?
I'm using Colemak layout and it supports AltGr symbols, but when using Ctrl+Alt shortcuts in text editors such as VSCode, it adds unwanted symbols to the text that's being typed !

@seppestas
Copy link

seppestas commented Apr 26, 2024

This issue has been bugging me forever. I created a custom keyboard layout for Windows but found it impossible to find a workaround using just that. Windows simply does not have a shift state for AltGr that is separate from Alt+Ctrl like xmodmap / XKB and MacOS do.

One solution I have been using is to use a keyboard with QMK / VIA support, treating AltGr as a layer with the required special characters in there. However, this than means the special character no longer work on any other keyboards (e.g. my laptop's built-in keyboard). It's also a pain, so I never bothered remapping all the keys. This method is also not portable between other keyboards afaik.

I think a way Powertoys could resolve this is by allowing the Keyboard remapping to be exported and imported. See #554 and #4452.

  • The functionality of switching keyboards to switch AltGr switch states could be replaced with the group / profile feature described in [KBM] Exporting and loading Key remap file / presets  #4452. Ideally, this would be able to show some sort of keyboard code, like the Windows language bar.
  • If the format is human readable, it should be fairly easy to bulk copy over configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager
Projects
None yet
Development

No branches or pull requests

9 participants