2017-03-29 00:20:36 +02:00
|
|
|
/* Copyright 2017 Jack Humbert
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2017-02-15 23:09:47 +01:00
|
|
|
#include "process_unicode_common.h"
|
2017-04-09 19:08:46 +02:00
|
|
|
#include "eeprom.h"
|
2022-04-13 10:00:18 +02:00
|
|
|
#include "utf8.h"
|
2017-02-15 23:09:47 +01:00
|
|
|
|
2018-12-19 17:39:24 +01:00
|
|
|
unicode_config_t unicode_config;
|
2019-05-03 18:33:00 +02:00
|
|
|
uint8_t unicode_saved_mods;
|
2020-12-22 18:51:47 +01:00
|
|
|
bool unicode_saved_caps_lock;
|
2021-09-22 00:23:49 +02:00
|
|
|
bool unicode_saved_num_lock;
|
2019-05-03 18:33:00 +02:00
|
|
|
|
2018-12-19 17:39:24 +01:00
|
|
|
#if UNICODE_SELECTED_MODES != -1
|
2019-08-30 20:19:03 +02:00
|
|
|
static uint8_t selected[] = {UNICODE_SELECTED_MODES};
|
2020-05-09 10:22:02 +02:00
|
|
|
static int8_t selected_count = sizeof selected / sizeof *selected;
|
|
|
|
static int8_t selected_index;
|
2018-12-19 17:39:24 +01:00
|
|
|
#endif
|
2017-02-16 05:20:35 +01:00
|
|
|
|
2018-12-19 17:39:24 +01:00
|
|
|
void unicode_input_mode_init(void) {
|
2019-08-30 20:19:03 +02:00
|
|
|
unicode_config.raw = eeprom_read_byte(EECONFIG_UNICODEMODE);
|
2018-12-19 17:39:24 +01:00
|
|
|
#if UNICODE_SELECTED_MODES != -1
|
2019-08-30 20:19:03 +02:00
|
|
|
# if UNICODE_CYCLE_PERSIST
|
|
|
|
// Find input_mode in selected modes
|
2020-05-09 10:22:02 +02:00
|
|
|
int8_t i;
|
2019-08-30 20:19:03 +02:00
|
|
|
for (i = 0; i < selected_count; i++) {
|
|
|
|
if (selected[i] == unicode_config.input_mode) {
|
|
|
|
selected_index = i;
|
|
|
|
break;
|
|
|
|
}
|
2018-12-19 17:39:24 +01:00
|
|
|
}
|
2019-08-30 20:19:03 +02:00
|
|
|
if (i == selected_count) {
|
|
|
|
// Not found: input_mode isn't selected, change to one that is
|
|
|
|
unicode_config.input_mode = selected[selected_index = 0];
|
|
|
|
}
|
|
|
|
# else
|
|
|
|
// Always change to the first selected input mode
|
2018-12-19 17:39:24 +01:00
|
|
|
unicode_config.input_mode = selected[selected_index = 0];
|
2019-08-30 20:19:03 +02:00
|
|
|
# endif
|
2018-12-19 17:39:24 +01:00
|
|
|
#endif
|
2019-08-30 20:19:03 +02:00
|
|
|
dprintf("Unicode input mode init to: %u\n", unicode_config.input_mode);
|
2017-02-15 23:09:47 +01:00
|
|
|
}
|
|
|
|
|
2022-02-12 19:29:31 +01:00
|
|
|
uint8_t get_unicode_input_mode(void) {
|
|
|
|
return unicode_config.input_mode;
|
|
|
|
}
|
2017-02-15 23:09:47 +01:00
|
|
|
|
2018-12-19 17:39:24 +01:00
|
|
|
void set_unicode_input_mode(uint8_t mode) {
|
2019-08-30 20:19:03 +02:00
|
|
|
unicode_config.input_mode = mode;
|
|
|
|
persist_unicode_input_mode();
|
|
|
|
dprintf("Unicode input mode set to: %u\n", unicode_config.input_mode);
|
2018-12-19 17:39:24 +01:00
|
|
|
}
|
|
|
|
|
2020-05-09 10:22:02 +02:00
|
|
|
void cycle_unicode_input_mode(int8_t offset) {
|
2018-12-19 17:39:24 +01:00
|
|
|
#if UNICODE_SELECTED_MODES != -1
|
2020-05-09 10:22:02 +02:00
|
|
|
selected_index = (selected_index + offset) % selected_count;
|
|
|
|
if (selected_index < 0) {
|
|
|
|
selected_index += selected_count;
|
|
|
|
}
|
2019-08-30 20:19:03 +02:00
|
|
|
unicode_config.input_mode = selected[selected_index];
|
|
|
|
# if UNICODE_CYCLE_PERSIST
|
|
|
|
persist_unicode_input_mode();
|
|
|
|
# endif
|
|
|
|
dprintf("Unicode input mode cycle to: %u\n", unicode_config.input_mode);
|
2018-12-19 17:39:24 +01:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2022-02-12 19:29:31 +01:00
|
|
|
void persist_unicode_input_mode(void) {
|
|
|
|
eeprom_update_byte(EECONFIG_UNICODEMODE, unicode_config.input_mode);
|
|
|
|
}
|
2019-08-30 20:19:03 +02:00
|
|
|
|
|
|
|
__attribute__((weak)) void unicode_input_start(void) {
|
2020-12-22 18:51:47 +01:00
|
|
|
unicode_saved_caps_lock = host_keyboard_led_state().caps_lock;
|
2021-09-22 00:23:49 +02:00
|
|
|
unicode_saved_num_lock = host_keyboard_led_state().num_lock;
|
2020-12-22 18:51:47 +01:00
|
|
|
|
|
|
|
// Note the order matters here!
|
|
|
|
// Need to do this before we mess around with the mods, or else
|
|
|
|
// UNICODE_KEY_LNX (which is usually Ctrl-Shift-U) might not work
|
|
|
|
// correctly in the shifted case.
|
|
|
|
if (unicode_config.input_mode == UC_LNX && unicode_saved_caps_lock) {
|
2021-11-04 06:22:17 +01:00
|
|
|
tap_code(KC_CAPS_LOCK);
|
2020-12-22 18:51:47 +01:00
|
|
|
}
|
|
|
|
|
2022-02-12 19:29:31 +01:00
|
|
|
unicode_saved_mods = get_mods(); // Save current mods
|
|
|
|
clear_mods(); // Unregister mods to start from a clean state
|
Fix and add unit tests for Caps Word to work with Unicode Map, Auto Shift, Retro Shift. (#17284)
* Fix Caps Word and Unicode Map
* Tests for Caps Word + Auto Shift and Unicode Map.
* Fix formatting
* Add additional keyboard report expectation macros
This commit defines five test utilities, EXPECT_REPORT, EXPECT_UNICODE,
EXPECT_EMPTY_REPORT, EXPECT_ANY_REPORT and EXPECT_NO_REPORT for use with
TestDriver.
EXPECT_REPORT sets a gmock expectation that a given keyboard report will
be sent. For instance,
EXPECT_REPORT(driver, (KC_LSFT, KC_A));
is shorthand for
EXPECT_CALL(driver,
send_keyboard_mock(KeyboardReport(KC_LSFT, KC_A)));
EXPECT_UNICODE sets a gmock expectation that a given Unicode code point
will be sent using UC_LNX input mode. For instance for U+2013,
EXPECT_UNICODE(driver, 0x2013);
expects the sequence of keys:
"Ctrl+Shift+U, 2, 0, 1, 3, space".
EXPECT_EMPTY_REPORT sets a gmock expectation that a given keyboard
report will be sent. For instance
EXPECT_EMPTY_REPORT(driver);
expects a single report without keypresses or modifiers.
EXPECT_ANY_REPORT sets a gmock expectation that a arbitrary keyboard
report will be sent, without matching its contents. For instance
EXPECT_ANY_REPORT(driver).Times(1);
expects a single arbitrary keyboard report will be sent.
EXPECT_NO_REPORT sets a gmock expectation that no keyboard report will
be sent at all.
* Add tap_key() and tap_keys() to TestFixture.
This commit adds a `tap_key(key)` method to TestFixture that taps a
given KeymapKey, optionally with a specified delay between press and
release.
Similarly, the method `tap_keys(key_a, key_b, key_c)` taps a sequence of
KeymapKeys.
* Use EXPECT_REPORT, tap_keys, etc. in most tests.
This commit uses EXPECT_REPORT, EXPECT_UNICODE, EXPECT_EMPTY_REPORT,
EXPECT_NO_REPORT, tap_key() and tap_keys() test utilities from the
previous two commits in most tests. Particularly the EXPECT_REPORT
macro is frequently useful and makes a nice reduction in boilerplate
needed to express many tests.
Co-authored-by: David Kosorin <david@kosorin.net>
2022-06-05 09:14:02 +02:00
|
|
|
clear_weak_mods();
|
2019-08-30 20:19:03 +02:00
|
|
|
|
|
|
|
switch (unicode_config.input_mode) {
|
2020-03-31 18:28:43 +02:00
|
|
|
case UC_MAC:
|
|
|
|
register_code(UNICODE_KEY_MAC);
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_LNX:
|
|
|
|
tap_code16(UNICODE_KEY_LNX);
|
|
|
|
break;
|
|
|
|
case UC_WIN:
|
2021-09-22 00:23:49 +02:00
|
|
|
// For increased reliability, use numpad keys for inputting digits
|
|
|
|
if (!unicode_saved_num_lock) {
|
2021-11-04 06:22:17 +01:00
|
|
|
tap_code(KC_NUM_LOCK);
|
2021-09-22 00:23:49 +02:00
|
|
|
}
|
2021-11-04 06:22:17 +01:00
|
|
|
register_code(KC_LEFT_ALT);
|
2021-11-13 00:00:36 +01:00
|
|
|
wait_ms(UNICODE_TYPE_DELAY);
|
2021-09-22 00:23:49 +02:00
|
|
|
tap_code(KC_KP_PLUS);
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_WINC:
|
|
|
|
tap_code(UNICODE_KEY_WINC);
|
|
|
|
tap_code(KC_U);
|
|
|
|
break;
|
2022-08-14 21:24:52 +02:00
|
|
|
case UC_EMACS:
|
|
|
|
// The usual way to type unicode in emacs is C-x-8 <RET> then the unicode number in hex
|
|
|
|
tap_code16(LCTL(KC_X));
|
|
|
|
tap_code16(KC_8);
|
|
|
|
tap_code16(KC_ENTER);
|
|
|
|
break;
|
2019-08-30 20:19:03 +02:00
|
|
|
}
|
2018-10-19 06:35:15 +02:00
|
|
|
|
2019-08-30 20:19:03 +02:00
|
|
|
wait_ms(UNICODE_TYPE_DELAY);
|
2017-02-15 23:09:47 +01:00
|
|
|
}
|
|
|
|
|
2019-08-30 20:19:03 +02:00
|
|
|
__attribute__((weak)) void unicode_input_finish(void) {
|
|
|
|
switch (unicode_config.input_mode) {
|
2020-03-31 18:28:43 +02:00
|
|
|
case UC_MAC:
|
|
|
|
unregister_code(UNICODE_KEY_MAC);
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_LNX:
|
2021-09-22 00:23:49 +02:00
|
|
|
tap_code(KC_SPACE);
|
2020-12-22 18:51:47 +01:00
|
|
|
if (unicode_saved_caps_lock) {
|
2021-11-04 06:22:17 +01:00
|
|
|
tap_code(KC_CAPS_LOCK);
|
2020-12-22 18:51:47 +01:00
|
|
|
}
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_WIN:
|
2021-11-04 06:22:17 +01:00
|
|
|
unregister_code(KC_LEFT_ALT);
|
2021-09-22 00:23:49 +02:00
|
|
|
if (!unicode_saved_num_lock) {
|
2021-11-04 06:22:17 +01:00
|
|
|
tap_code(KC_NUM_LOCK);
|
2021-09-22 00:23:49 +02:00
|
|
|
}
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_WINC:
|
|
|
|
tap_code(KC_ENTER);
|
|
|
|
break;
|
2022-08-14 21:24:52 +02:00
|
|
|
case UC_EMACS:
|
|
|
|
tap_code16(KC_ENTER);
|
|
|
|
break;
|
2019-08-30 20:19:03 +02:00
|
|
|
}
|
|
|
|
|
2022-02-12 19:29:31 +01:00
|
|
|
set_mods(unicode_saved_mods); // Reregister previously set mods
|
2019-05-03 18:33:00 +02:00
|
|
|
}
|
|
|
|
|
2019-08-30 20:19:03 +02:00
|
|
|
__attribute__((weak)) void unicode_input_cancel(void) {
|
|
|
|
switch (unicode_config.input_mode) {
|
2020-03-31 18:28:43 +02:00
|
|
|
case UC_MAC:
|
|
|
|
unregister_code(UNICODE_KEY_MAC);
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_LNX:
|
2021-09-22 00:23:49 +02:00
|
|
|
tap_code(KC_ESCAPE);
|
2020-12-22 18:51:47 +01:00
|
|
|
if (unicode_saved_caps_lock) {
|
2021-11-04 06:22:17 +01:00
|
|
|
tap_code(KC_CAPS_LOCK);
|
2020-12-22 18:51:47 +01:00
|
|
|
}
|
|
|
|
break;
|
2019-08-30 20:19:03 +02:00
|
|
|
case UC_WINC:
|
2021-09-22 00:23:49 +02:00
|
|
|
tap_code(KC_ESCAPE);
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UC_WIN:
|
2021-11-04 06:22:17 +01:00
|
|
|
unregister_code(KC_LEFT_ALT);
|
2021-09-22 00:23:49 +02:00
|
|
|
if (!unicode_saved_num_lock) {
|
2021-11-04 06:22:17 +01:00
|
|
|
tap_code(KC_NUM_LOCK);
|
2021-09-22 00:23:49 +02:00
|
|
|
}
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
2022-08-14 21:24:52 +02:00
|
|
|
case UC_EMACS:
|
|
|
|
tap_code16(LCTL(KC_G)); // C-g cancels
|
|
|
|
break;
|
2019-08-30 20:19:03 +02:00
|
|
|
}
|
|
|
|
|
2022-02-12 19:29:31 +01:00
|
|
|
set_mods(unicode_saved_mods); // Reregister previously set mods
|
2017-02-15 23:09:47 +01:00
|
|
|
}
|
|
|
|
|
2021-09-22 00:23:49 +02:00
|
|
|
// clang-format off
|
|
|
|
|
|
|
|
static void send_nibble_wrapper(uint8_t digit) {
|
|
|
|
if (unicode_config.input_mode == UC_WIN) {
|
|
|
|
uint8_t kc = digit < 10
|
|
|
|
? KC_KP_1 + (10 + digit - 1) % 10
|
|
|
|
: KC_A + (digit - 10);
|
|
|
|
tap_code(kc);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
send_nibble(digit);
|
|
|
|
}
|
|
|
|
|
|
|
|
// clang-format on
|
|
|
|
|
2017-02-15 23:09:47 +01:00
|
|
|
void register_hex(uint16_t hex) {
|
2019-08-30 20:19:03 +02:00
|
|
|
for (int i = 3; i >= 0; i--) {
|
|
|
|
uint8_t digit = ((hex >> (i * 4)) & 0xF);
|
2021-09-22 00:23:49 +02:00
|
|
|
send_nibble_wrapper(digit);
|
2019-08-30 20:19:03 +02:00
|
|
|
}
|
2017-03-29 00:20:36 +02:00
|
|
|
}
|
2018-10-02 02:56:04 +02:00
|
|
|
|
2020-02-25 02:54:51 +01:00
|
|
|
void register_hex32(uint32_t hex) {
|
|
|
|
bool onzerostart = true;
|
|
|
|
for (int i = 7; i >= 0; i--) {
|
|
|
|
if (i <= 3) {
|
|
|
|
onzerostart = false;
|
|
|
|
}
|
|
|
|
uint8_t digit = ((hex >> (i * 4)) & 0xF);
|
|
|
|
if (digit == 0) {
|
|
|
|
if (!onzerostart) {
|
2021-09-22 00:23:49 +02:00
|
|
|
send_nibble_wrapper(digit);
|
2020-02-25 02:54:51 +01:00
|
|
|
}
|
|
|
|
} else {
|
2021-09-22 00:23:49 +02:00
|
|
|
send_nibble_wrapper(digit);
|
2020-02-25 02:54:51 +01:00
|
|
|
onzerostart = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-18 09:07:34 +02:00
|
|
|
void register_unicode(uint32_t code_point) {
|
|
|
|
if (code_point > 0x10FFFF || (code_point > 0xFFFF && unicode_config.input_mode == UC_WIN)) {
|
|
|
|
// Code point out of range, do nothing
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
unicode_input_start();
|
|
|
|
if (code_point > 0xFFFF && unicode_config.input_mode == UC_MAC) {
|
|
|
|
// Convert code point to UTF-16 surrogate pair on macOS
|
|
|
|
code_point -= 0x10000;
|
|
|
|
uint32_t lo = code_point & 0x3FF, hi = (code_point & 0xFFC00) >> 10;
|
|
|
|
register_hex32(hi + 0xD800);
|
|
|
|
register_hex32(lo + 0xDC00);
|
|
|
|
} else {
|
|
|
|
register_hex32(code_point);
|
|
|
|
}
|
|
|
|
unicode_input_finish();
|
|
|
|
}
|
|
|
|
|
2020-02-24 00:27:25 +01:00
|
|
|
void send_unicode_string(const char *str) {
|
|
|
|
if (!str) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (*str) {
|
2020-06-18 09:07:34 +02:00
|
|
|
int32_t code_point = 0;
|
2020-06-22 03:21:48 +02:00
|
|
|
str = decode_utf8(str, &code_point);
|
2020-02-24 00:27:25 +01:00
|
|
|
|
|
|
|
if (code_point >= 0) {
|
2020-06-18 09:07:34 +02:00
|
|
|
register_unicode(code_point);
|
2020-02-24 00:27:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-09 10:22:02 +02:00
|
|
|
// clang-format off
|
|
|
|
|
|
|
|
static void audio_helper(void) {
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
switch (get_unicode_input_mode()) {
|
|
|
|
# ifdef UNICODE_SONG_MAC
|
|
|
|
static float song_mac[][2] = UNICODE_SONG_MAC;
|
|
|
|
case UC_MAC:
|
|
|
|
PLAY_SONG(song_mac);
|
|
|
|
break;
|
|
|
|
# endif
|
|
|
|
# ifdef UNICODE_SONG_LNX
|
|
|
|
static float song_lnx[][2] = UNICODE_SONG_LNX;
|
|
|
|
case UC_LNX:
|
|
|
|
PLAY_SONG(song_lnx);
|
|
|
|
break;
|
|
|
|
# endif
|
|
|
|
# ifdef UNICODE_SONG_WIN
|
|
|
|
static float song_win[][2] = UNICODE_SONG_WIN;
|
|
|
|
case UC_WIN:
|
|
|
|
PLAY_SONG(song_win);
|
|
|
|
break;
|
|
|
|
# endif
|
|
|
|
# ifdef UNICODE_SONG_BSD
|
|
|
|
static float song_bsd[][2] = UNICODE_SONG_BSD;
|
|
|
|
case UC_BSD:
|
|
|
|
PLAY_SONG(song_bsd);
|
|
|
|
break;
|
|
|
|
# endif
|
|
|
|
# ifdef UNICODE_SONG_WINC
|
|
|
|
static float song_winc[][2] = UNICODE_SONG_WINC;
|
|
|
|
case UC_WINC:
|
|
|
|
PLAY_SONG(song_winc);
|
|
|
|
break;
|
|
|
|
# endif
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
// clang-format on
|
|
|
|
|
2018-12-19 17:39:24 +01:00
|
|
|
bool process_unicode_common(uint16_t keycode, keyrecord_t *record) {
|
2019-08-30 20:19:03 +02:00
|
|
|
if (record->event.pressed) {
|
2020-05-09 10:22:02 +02:00
|
|
|
bool shifted = get_mods() & MOD_MASK_SHIFT;
|
2019-08-30 20:19:03 +02:00
|
|
|
switch (keycode) {
|
|
|
|
case UNICODE_MODE_FORWARD:
|
2020-05-09 10:22:02 +02:00
|
|
|
cycle_unicode_input_mode(shifted ? -1 : +1);
|
|
|
|
audio_helper();
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
case UNICODE_MODE_REVERSE:
|
2020-05-09 10:22:02 +02:00
|
|
|
cycle_unicode_input_mode(shifted ? +1 : -1);
|
|
|
|
audio_helper();
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
2022-08-14 21:24:52 +02:00
|
|
|
case UNICODE_MODE_MAC:
|
|
|
|
set_unicode_input_mode(UC_MAC);
|
|
|
|
audio_helper();
|
|
|
|
break;
|
|
|
|
case UNICODE_MODE_LNX:
|
|
|
|
set_unicode_input_mode(UC_LNX);
|
|
|
|
audio_helper();
|
|
|
|
break;
|
|
|
|
case UNICODE_MODE_WIN:
|
|
|
|
set_unicode_input_mode(UC_WIN);
|
|
|
|
audio_helper();
|
|
|
|
break;
|
|
|
|
case UNICODE_MODE_BSD:
|
|
|
|
set_unicode_input_mode(UC_BSD);
|
|
|
|
audio_helper();
|
|
|
|
break;
|
|
|
|
case UNICODE_MODE_WINC:
|
|
|
|
set_unicode_input_mode(UC_WINC);
|
|
|
|
audio_helper();
|
|
|
|
break;
|
|
|
|
case UNICODE_MODE_EMACS:
|
|
|
|
set_unicode_input_mode(UC_EMACS);
|
2020-05-09 10:22:02 +02:00
|
|
|
audio_helper();
|
2019-08-30 20:19:03 +02:00
|
|
|
break;
|
|
|
|
}
|
2018-12-19 17:39:24 +01:00
|
|
|
}
|
2020-05-09 10:22:02 +02:00
|
|
|
|
2019-08-30 20:19:03 +02:00
|
|
|
#if defined(UNICODE_ENABLE)
|
|
|
|
return process_unicode(keycode, record);
|
2018-12-19 17:39:24 +01:00
|
|
|
#elif defined(UNICODEMAP_ENABLE)
|
2019-08-30 20:19:03 +02:00
|
|
|
return process_unicodemap(keycode, record);
|
2018-12-19 17:39:24 +01:00
|
|
|
#elif defined(UCIS_ENABLE)
|
2019-08-30 20:19:03 +02:00
|
|
|
return process_ucis(keycode, record);
|
2018-12-19 17:39:24 +01:00
|
|
|
#else
|
2019-08-30 20:19:03 +02:00
|
|
|
return true;
|
2018-12-19 17:39:24 +01:00
|
|
|
#endif
|
|
|
|
}
|