scimimmodule: support super key (between ctrl and alt key)
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 2 Jan 2014 06:08:01 +0000 (15:08 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 2 Jan 2014 06:08:01 +0000 (15:08 +0900)
src/modules/ecore_imf/scim/scim_imcontext.cpp

index 9b61d57..88ca99a 100644 (file)
@@ -420,6 +420,10 @@ _ecore_imf_modifier_to_scim_mask(unsigned int modifiers)
    if (modifiers & ECORE_IMF_KEYBOARD_MODIFIER_SHIFT)
      mask |= SCIM_KEY_ShiftMask;
 
+   /**< "Win" (between "Ctrl" and "Alt") is pressed */
+   if (modifiers & ECORE_IMF_KEYBOARD_MODIFIER_WIN)
+     mask |= SCIM_KEY_SuperMask;
+
    /**< "AltGr" is pressed */
    if (modifiers & ECORE_IMF_KEYBOARD_MODIFIER_ALTGR)
      mask |= SCIM_KEY_Mod5Mask;