From ec3acc3d66af5a205503048d7d912a9ffae7f44b Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 16 Jun 2021 18:43:33 +0200 Subject: [PATCH] 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 --- .../Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp b/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp index da4c2ce8..39579b5d 100644 --- a/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp +++ b/plugins/Kaleidoscope-Unicode/src/kaleidoscope/plugin/Unicode.cpp @@ -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);