Author: yamakenz
Date: Mon Aug 27 05:47:57 2007
New Revision: 4892

Modified:
   trunk/gtk/key-util-gtk.c

Log:
* gtk/key-util-gtk.c
  - (im_uim_convert_keyevent): Add a comment for the kana_RO key hack


Modified: trunk/gtk/key-util-gtk.c
==============================================================================
--- trunk/gtk/key-util-gtk.c    (original)
+++ trunk/gtk/key-util-gtk.c    Mon Aug 27 05:47:57 2007
@@ -231,6 +231,17 @@
   }
 #ifdef GDK_WINDOWING_X11
   /* 1'. replace keysym for Japanese keyboard */
+  /*
+   * A hack to distinguish Japanese kana_RO key from yen sign key
+   * (both keys normally generates backslash on ASCII input). See
+   * [uim-en 11] and the follow messages for the discussion.
+   *
+   * This hack assumes that the xmodmap for the Japanese kana
+   * keyboard is defined as follows:
+   * 
+   * yen sign key: keycode X = backslash bar prolongedsound
+   * kana_RO key:  keycode Y = backslash underscore kana_RO
+   */
   if (*ukey == '\\' &&
       event->hardware_keycode == g_prolongedsound_keycode) {
     *ukey = UKey_Yen;

Reply via email to