+++ This bug was initially created as a clone of Bug #464397 +++ Description of problem: If I have some text selected in KWrite (for example), if I change window by Alt+Tab, and then come back to KWrite, the selected text gets deleted. The text gets deleted when I '*come back*' to the KWrite window. This doesn't happen always, but I think I've found a way to reproduce it. Steps to Reproduce: 1. Enable input method ibus 2. Log in to KDE again 3. Open a text document in KWrite 4. Press Ctrl+F to search for some text that's in the file 5. When you type the search text, the text gets selected in the file 6. Press 'Esc' to close the search panel. 7. The selected text gets deleted! 8. Exit iBus by right-clicking on the tray icon 9. Repeat the above steps and find that the problem no longer exists. Additional info: I've re-installed my Fedora 9 and this problem exists for KDE 4.0 and KDE 4.1 from updates-testing Installed iBus packages: ibus.i686 1.3.7-11.fc14 ibus-gtk2.i686 1.3.7-11.fc14 ibus-gtk3.i686 1.3.7-11.fc14 ibus-libs.i686 1.3.7-11.fc14 ibus-m17n.i686 1.3.1-6.fc14 ibus-qt.i686 1.3.1-2.fc14
I apologize for this misleading line: "I've re-installed my Fedora 9 and this problem exists for KDE 4.0 and KDE 4.1 from updates-testing" This came from the original bug report for the same observation, but with SCIM. I'm running Fedora 14, fully updated from the regular stable repositories.
Thanks for the report. It seems Qt input method removes the selection. kdelibs/kate/view/kateviewinternal.cpp: void KateViewInternal::inputMethodEvent(QInputMethodEvent* e) { if ( m_view->selection() ) m_view->removeSelectedText(); } Probably the text is invisible ibus-qt does not have to send the event. https://github.com/fujiwarat/ibus-qt/commit/9f1c5af1ea25f820a89ec87f06c3f85d2051dd7f
The patch was updated. https://github.com/ibus/ibus-qt/commit/282bf68d2064972fd24de109e0280fd48c299c9c http://koji.fedoraproject.org/koji/taskinfo?taskID=2624935
ibus-qt-1.3.1-3.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/ibus-qt-1.3.1-3.fc14
ibus-qt-1.3.0-3.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/ibus-qt-1.3.0-3.fc13
ibus-qt-1.3.1-3.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update ibus-qt'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/ibus-qt-1.3.1-3.fc14
ibus-qt-1.3.0-3.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
ibus-qt-1.3.1-3.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.