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

Loading…
Cancel
Save