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

Can't type backslash in On-Screen Keyboard with Swedish keyboard layout #467

Closed
chrisant996 opened this issue Jun 18, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@chrisant996
Copy link
Owner

chrisant996 commented Jun 18, 2023

Originally reported by @Sopor in cmderdev/cmder#89 (comment):

I can't type backslash, but i can copy it from another window and paste it in Cmder.

@chrisant996
Copy link
Owner Author

chrisant996 commented Jun 18, 2023

Discussion revealed that the issue occurs when using the On-Screen Keyboard to input AltGr \ when using the Swedish keyboard layout.

@chrisant996 chrisant996 added the bug Something isn't working label Jun 18, 2023
@chrisant996
Copy link
Owner Author

chrisant996 commented Jun 18, 2023

AltGr-\ from the physical keyboard says Left Ctrl and Right Alt are pressed.

AltGr \ from the On-Screen Keyboard says Left Ctrl, Left Alt, and Right Alt are pressed.

Those are the flags for the AltGr substitute being used. By default, Clink ignores the AltGr substitute, to avoid interfering with tons of key bindings.

Running clink set terminal.use_altgr_substitute true lets Clink respect the AltGr substitute, and then the OSK is able to input the \ character.

Hopefully there is a way for Clink to differentiate between a user entering the AltGr substitute versus the OSK generating a misleading AltGr substitute. Maybe Clink can consider Left Alt + Right Alt to mean that it isn't actually the AltGr substitute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant