[uim-commit] r1099 - trunk/uim

tkng at freedesktop.org tkng at freedesktop.org
Tue Aug 2 23:45:42 EST 2005


Author: tkng
Date: 2005-08-02 06:45:40 -0700 (Tue, 02 Aug 2005)
New Revision: 1099

Modified:
   trunk/uim/scim.cpp
Log:
* uim/scim.cpp:
 -(push_symbol_key): Call ukey_mod_to_skey_mod to set modifier.


Modified: trunk/uim/scim.cpp
===================================================================
--- trunk/uim/scim.cpp	2005-08-02 13:20:29 UTC (rev 1098)
+++ trunk/uim/scim.cpp	2005-08-02 13:45:40 UTC (rev 1099)
@@ -416,18 +416,17 @@
 push_symbol_key(uim_lisp id_, uim_lisp key_, uim_lisp mod_)
 {
     int id = uim_scm_c_int(id_);
+    int mod = uim_scm_c_int(mod_);
     const char *sym = uim_scm_refer_c_str(key_);
-
     fprintf(stderr, "push_symbol_key = %s\n", sym);
 
     KeyEvent scim_key;
     uim_keysymbol_to_scim_keysymbol(sym, &scim_key);
+    scim_key.mask = ukey_mod_to_skey_mod(mod);
 
     SCIMContext *ic = get_context_from_id( id );
-    if ( ic->instance->process_key_event( scim_key ) )
-    {
-
-        return uim_scm_t();
+    if (ic->instance->process_key_event( scim_key )) {
+      return uim_scm_t();
     }
 
     return uim_scm_f();



More information about the uim-commit mailing list