fix wrong forward key event signature
authorRyo Onodera <onodera@clear-code.com>
Tue, 17 May 2011 11:07:40 +0000 (20:07 +0900)
committerRyo Onodera <onodera@clear-code.com>
Tue, 17 May 2011 11:09:31 +0000 (20:09 +0900)
ibus/engine.py
ibus/interface/iengine.py

index 8cbcee3..fe5dd98 100644 (file)
@@ -114,8 +114,8 @@ class EngineBase(object.Object):
         text = serializable.serialize_object(text)
         return self.__proxy.CommitText(text)
 
-    def forward_key_event(self, keyval, state):
-        return self.__proxy.ForwardKeyEvent(keyval, state)
+    def forward_key_event(self, keyval, keycode, state):
+        return self.__proxy.ForwardKeyEvent(keyval, keycode, state)
 
     def update_preedit_text(self, text, cursor_pos, visible, mode=common.IBUS_ENGINE_PREEDIT_CLEAR):
         text = serializable.serialize_object(text)
index 0e0f4ee..9e0d981 100644 (file)
@@ -104,8 +104,8 @@ class IEngine(dbus.service.Object):
     @signal(signature="v")
     def CommitText(self, text): pass
 
-    @signal(signature="uu")
-    def ForwardKeyEvent(self, keyval, state): pass
+    @signal(signature="uuu")
+    def ForwardKeyEvent(self, keyval, keycode, state): pass
 
     @signal(signature="vubu")
     def UpdatePreeditText(self, text, cursor_pos, visible, mode): pass