summaryrefslogtreecommitdiff
path: root/src/utf8.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-10-21 23:37:24 +0100
committerPhil Jones <philj56@gmail.com>2022-10-21 23:37:24 +0100
commitd1b94b4487c72b13320a281ad6a2fc291e4c79c7 (patch)
treed4b7ce738f9ad14dd55a1054a39901bf835db2a5 /src/utf8.c
parent7bb70c7407f652c584837d651fb9bcdb6b66ff9f (diff)
Initial input handling cleanup.
Also changed keyboard shortcuts to use physical keycodes, rather than XKB keysyms. This means shortcuts don't shift when keyboard layout is changed.
Diffstat (limited to 'src/utf8.c')
-rw-r--r--src/utf8.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utf8.c b/src/utf8.c
index 7ed6046..bd0c425 100644
--- a/src/utf8.c
+++ b/src/utf8.c
@@ -2,6 +2,11 @@
#include "utf8.h"
+uint32_t utf8_isprint(uint32_t c)
+{
+ return g_unichar_isprint(c);
+}
+
uint32_t utf8_isupper(uint32_t c)
{
return g_unichar_isupper(c);