keymanapp / keymanapp/keyman

bug(web): differing behavior between .js and .kmx keyboards

Open
#15,358 0 comments 0 reactions 1 assignee Claimed by @ermshiperete View on GitHub
bug web/
Dominant language
Pascal
Stars
534
Forks
143
Avg merge
2d 10h
Merged PRs (30d)
113

Description

Baseline test `k_0201___ralt_2.kmn` has a single rule:

```
group(main) using keys

'c' + [RAlt K_A] > "cd"
```

Typing abcRALT+aabca on a hardware keyboard results in different outputs:

- with a .kmx keyboard (with a desktop engine) the result is `abcdabca`
- however, with a .js keyboard the result is `abcdabcd`.

This is clearly wrong. It could be argued that .js keyboards don't support RALT key (compiler outputs a warning). Therefore #15357 adds another test, `k_0202___alt.kmn` which is identical except that the rule uses ALT instead of RALT:

```
'c' + [Alt K_A] > "cd"
```

With this (and the same input as above) the output is equally wrong: `abcaabca` (instead of `abcdabca`).

(With a .kmx keyboard and the current state of web-core, both keyboards produce the wrong output `abcaabca`, but that's a different bug)

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.