Bug 655530 - Selected text gets deleted in KDE if Input Method (iBus) is enabled
Summary: Selected text gets deleted in KDE if Input Method (iBus) is enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-qt
Version: 14
Hardware: i386
OS: Linux
low
high
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-21 14:39 UTC by Syam
Modified: 2010-11-30 22:34 UTC (History)
6 users (show)

Fixed In Version: ibus-qt-1.3.1-3.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of: 464397
Environment:
Last Closed: 2010-11-30 22:24:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Syam 2010-11-21 14:39:22 UTC
+++ 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

Comment 1 Syam 2010-11-21 15:19:56 UTC
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.

Comment 2 fujiwara 2010-11-25 03:19:54 UTC
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

Comment 4 Fedora Update System 2010-11-25 07:09:05 UTC
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

Comment 5 Fedora Update System 2010-11-25 07:09:13 UTC
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

Comment 6 Fedora Update System 2010-11-26 01:06:03 UTC
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

Comment 7 Fedora Update System 2010-11-30 22:24:22 UTC
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.

Comment 8 Fedora Update System 2010-11-30 22:33:46 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.