From 7be89f424aa15a122d400fc4d6ed8f8400c95364 Mon Sep 17 00:00:00 2001 From: Choe Hwanjin Date: Sat, 26 Feb 2011 21:13:38 +0900 Subject: [PATCH] Do not normalize keyevent on romaja keyboard Romaja hangul keyboard is not transliteration method. So when the hangul keyboard is romaja method, we should use the char from the keyevent without conversion. --- src/engine.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index e067e73..1fd9f62 100644 --- a/src/engine.c +++ b/src/engine.c @@ -747,8 +747,10 @@ ibus_hangul_engine_process_key_event (IBusEngine *engine, // each key, not the character. We make the keyval from keycode // as if the keyboard is US qwerty layout. Then we can assume the // keyval represent the position of the each key. - if (keymap != NULL) - keyval = ibus_keymap_lookup_keysym(keymap, keycode, modifiers); + if (strcmp(hangul_keyboard->str, "ro") != 0) { + if (keymap != NULL) + keyval = ibus_keymap_lookup_keysym(keymap, keycode, modifiers); + } // ignore capslock if (modifiers & IBUS_LOCK_MASK) { -- 2.7.4