Update default factory when press Ctrl + Shift.
authorHuang Peng <shawn.p.huang@gmail.com>
Sat, 30 Aug 2008 10:15:23 +0000 (18:15 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Sat, 30 Aug 2008 10:15:23 +0000 (18:15 +0800)
daemon/bus.py

index bcc12b50d033206a3f6fdd51c918b54b9ad66efc..b54ae68ef008e695cb0c8fcd197f4e8fd77b1a56 100644 (file)
@@ -179,6 +179,7 @@ class IBus(ibus.Object):
     def __context_next_factory(self, context):
         old_factory = context.get_factory()
         new_factory = self.__factory_manager.get_next_factory(old_factory)
+        self.__factory_manager.set_default_factory(new_factory)
         engine = new_factory.create_engine()
         self.__panel.reset()
         engine.focus_in()