keymanapp / keymanapp/keyman

feat(developer): &CasedKeys does not work with otherwise rule-less keys

Open
#4,882 4 comments 0 reactions 0 assignees View on GitHub
developer/ developer/compilers/ feat
Dominant language
Pascal
Stars
534
Forks
143
Avg merge
2d 10h
Merged PRs (30d)
113

Description

**Describe the bug**
&CasedKeys doesn't work with keys that haven't been defined and therefore produce the US English default. (Perhaps this is how it is designed, in which case this should be a feature request!)

**To Reproduce**
I encountered this when reviewing https://github.com/keymanapp/keyboards/pull/1519 and suggesting the author add: `store(&CasedKeys) 'a'..'b' 'd'..'g' 'i'..'p' 'r'..'w' 'y'..'z'` to the keyboard to apply CapsLock logic to keys that were not redefined. When I added the statement, I found I needed to add: `+ 'a' > 'a'` and `+ 'A' > 'A'` to get CapsLock to work with the "a" key.

**Expected behavior**
I expected that putting 'a' in the &CasedKeys store would apply the CapsLock logic to the existing default rules for 'a' and 'A'.

---

**Keyman for Windows:**
- OS: Windows 10 20H2 x64
- Keyman version: 14.0.271

**Keyman Developer:**
- OS: Windows 10 20H2 x64
- Keyman Developer version: 14.0.271.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.