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

Partial fix for Issue #9405 - Caps Lock not working with Unicode Map's XP on Linux #11232

Merged
merged 6 commits into from
Dec 22, 2020

Conversation

spidey3
Copy link
Contributor

@spidey3 spidey3 commented Dec 17, 2020

Description

This is a partial fix for Issue #9405 [One-shot Shift and Caps Lock not working with Unicode Map's XP on Linux].

The One-shot Shift part of the issue is addressed in PR #11220.
Note: This PR depends on #11220 being merged to work correctly!

As discussed in the bug, Ctrl+Shift+U to input Unicode characters does not work when Caps Lock is activated. This symptom is seen in most Linux distros, and also in ChromeOS. It's my opinion that the Linux and ChromeOS behavior is broken. To that end:

This PR creates a workaround in QMK to unset Caps Lock before sending Ctrl-Shift-U, and then turn Caps Lock back on after the unicode sequence has been entered.

Caps Lock Shift Results
Off Off Unicode character entered correctly
Off On Unicode character entered correctly
On Off Unicode character entered correctly
On On Unicode character entered correctly (updated)

I would very much appreciate if others could test this with various Linux distros and other Linux-like OS types, to verify that it is broadly compatible.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@github-actions github-actions bot added the core label Dec 17, 2020
@bit-shifter
Copy link

Patch applied locally and verified to work on Linux (arch).

@Erovia Erovia requested a review from a team December 22, 2020 17:06
@Erovia Erovia requested a review from a team December 22, 2020 17:22
@fauxpark
Copy link
Member

Thanks!

@fauxpark fauxpark merged commit f40b564 into qmk:master Dec 22, 2020
nblyumberg pushed a commit to nblyumberg/qmk_firmware that referenced this pull request Dec 31, 2020
xgnxs pushed a commit to xgnxs/qmk_firmware that referenced this pull request Jan 9, 2021
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request Jan 13, 2021
@spidey3 spidey3 deleted the issue_9405 branch January 14, 2021 20:35
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants