attrs = ibus.AttrList ()
attrs.append (ibus.AttributeUnderline (pango.UNDERLINE_SINGLE, 0, len (self._convert_chars)))
- attrs.append (ibus.AttributeBackground (ibus.RGB (200, 200, 200),
+ attrs.append (ibus.AttributeBackground (ibus.RGB (200, 200, 240),
pos - len (self._segments[self._cursor_pos][1]),
pos))
self.UpdatePreedit (dbus.String (self._convert_chars),
def _on_key_common (self, keyval):
+ if self._convert_begined:
+ return True
self._input_chars += unichr (keyval)
self._cursor_pos += 1
self._invalidate ()
@signal (signature="ubu")
def ForwardKeyEvent (self, keyval, is_press, state): pass
- @signal (signature="saaiib")
+ @signal (signature="saauib")
def UpdatePreedit (self, text, attrs, cursor_pos, visible): pass
@signal (signature="svb")