[Pkg-ime-devel] Bug#633647: ibus-chewing: Character duplication when changing windows

Hsin-Yi Chen (hychen) ossug.hychen at gmail.com
Tue Jul 12 12:56:23 UTC 2011


Package: ibus-chewing
Version: 1.3.9.2-2
Severity: normal

This bug is reported in Ubuntu (LP: #690896), and I also found
it can be reproduced in Debian unstable, so I attach the patch for
fixing this bug.

I already verified my patch in Debian unstable and Ubuntu Natty, please
help to review the patch, thanks.

the root casue is that ibus-cheiwng has be set NEED_COMMIT status again
when focus-in event is triiger, because the last key is Return key and
libchewing is still Commit state.

this bug only happens when you disable plain zhuin mode of ibus-chewing.

Test Case
---------

Step To Reproduce

1. set ibus-chewing don't use plain zhuin mode
2. launch gedit
3. create new unamed document and now you will have 2 unamed documents
4. type "測試" in first unamed document and then press Enter key to
   commit string
5. switch focus to second unamed document
6. switch focus back to first unamed document

Excepted Result

 there is no chinese characters in first unamed documents

Actual Result

 there is "測試測試測試測試" in first unamed docuemts


-- System Information:
Debian Release: sid
Architecture: i386 (i686)

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_hascommit_flag.patch
Type: text/x-diff
Size: 2394 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ime-devel/attachments/20110712/467273b0/attachment.patch>


More information about the Pkg-ime-devel mailing list