summaryrefslogtreecommitdiff
path: root/hangul/hangulinputcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'hangul/hangulinputcontext.c')
-rw-r--r--hangul/hangulinputcontext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c
index 03d1c9d..90d0f7f 100644
--- a/hangul/hangulinputcontext.c
+++ b/hangul/hangulinputcontext.c
@@ -1678,7 +1678,10 @@ hangul_ic_select_keyboard(HangulInputContext *hic, const char* id)
if (keyboard != NULL) {
hic->keyboard = keyboard;
hic->combination = keyboard->combination_table;
- }
+ } else {
+ hic->keyboard = &hangul_keyboard_2;
+ hic->combination = hangul_keyboard_2.combination_table;
+ }
}
void