Unicode: Use the numpad to input digits on Linux too

When there are different input methods available on Linux (Chinese, Japanese,
etc), using the numpad is more reliable than the number row. As both work,
rather than making it configurable, just switch to numpad on Linux.

Fixes #1064.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/1066/head
Gergely Nagy 3 years ago
parent 36938bb57b
commit ec3acc3d66
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -95,7 +95,7 @@ void Unicode::typeCode(uint32_t unicode) {
if (digit == 0) {
if (on_zero_start == false) {
Key key;
if (::HostOS.os() == hostos::WINDOWS) {
if (::HostOS.os() != hostos::OSX) {
key = hexToKeysWithNumpad(digit);
} else {
key = hexToKey(digit);
@ -109,7 +109,7 @@ void Unicode::typeCode(uint32_t unicode) {
}
} else {
Key key;
if (::HostOS.os() == hostos::WINDOWS) {
if (::HostOS.os() != hostos::OSX) {
key = hexToKeysWithNumpad(digit);
} else {
key = hexToKey(digit);

Loading…
Cancel
Save