Bug 48024

Summary: cut (CTRL-X, Shift-DEL) does not remove the highlighted text
Product: [Unmaintained] klipper Reporter: Roger Larsson <roger.larsson>
Component: generalAssignee: Carsten Pfeiffer <pfeiffer>
Status: RESOLVED WORKSFORME    
Severity: grave CC: eva, l.lunak, misc2006, yez
Priority: NOR    
Version: CVS   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roger Larsson 2002-09-18 22:15:07 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 2.95.3 20010315 (SuSE) 
OS:          Linux

With text highlighted and hitting Ctrl-X (or Shift-Del or the menu entry Cut) will not remove the word. It works like a Copy.

Kate and Advanced Editor works.

At first I thought that it was only the keyboard shortcut that did not
work - since using the mouse menu worked once or twice.
When testing please try several times...
Comment 1 Daniel Naber 2002-09-30 18:27:38 UTC
bug is not 100% reproducible for me, but it happens often. 
Comment 2 Daniel Naber 2002-09-30 18:30:17 UTC
I think this is the pattern: cut only fails if you selected the word by 
double-click. if you select it char by char with shift+cursor, cut works. 
Comment 3 Daniel Naber 2002-09-30 18:34:07 UTC
okay, it's a Qt bug :-( 
Comment 4 Daniel Naber 2002-10-04 22:07:44 UTC
*** Bug 48683 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Naber 2002-10-08 22:50:27 UTC
Subject: Re: [Issue N7742]   cut (CTRL-X, Shift-DEL) does not remove the highlighted text

On Tuesday 08 October 2002 13:59, you wrote:

> I am unable to reproduce this here. I've tried with the textedit
> example. Are you able to reproduce with any of the qt-examples?

No, but I've upgraded my qt-copy (Qt3.1beta2) and it still happens with 
e.g. the signature editor in KMail (which is a simple QTextEdit). I have 
no clue what's so special about KMail that it doesn't work there  :-( You 
migth want to have a short look at the code (just search for QTextEdit), 
maybe you find something special:

http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdenetwork/kmail/signatureconfigurator.cpp?rev=1.4&content-type=text/vnd.viewcvs-markup

regards
 Daniel

Comment 6 Roger Larsson 2002-10-08 23:00:55 UTC
KEdit has the same problem as KMail 
Comment 7 qt-bugs 2002-10-09 10:20:47 UTC
Subject: Re: [Issue N7742]   cut (CTRL-X, Shift-DEL) does not remove the highlighted text

On Tuesday, 8 Oct 2002 22:51 Daniel Naber wrote:
> On Tuesday 08 October 2002 13:59, you wrote:
>
> > I am unable to reproduce this here. I've tried with the textedit
> > example. Are you able to reproduce with any of the qt-examples?
>
> No, but I've upgraded my qt-copy (Qt3.1beta2) and it still happens
> with
> e.g. the signature editor in KMail (which is a simple QTextEdit). I
> have
> no clue what's so special about KMail that it doesn't work there  :-(
> You
> migth want to have a short look at the code (just search for
> QTextEdit),
> maybe you find something special:
>
>
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdenetwork/kmail/signatureconfigurator.cpp?rev=1.4&content-type=text/vnd.viewcvs-markup
>
> regards
>  Daniel

Hi Daniel

I am sorry but we don't have the time to debug KDE-applications here at
TrollTech. If you are able to find under what conditions this happens
please report back and I will look into it.

best regards



Anders Bakken - Trolltech AS, W. Thranes gt. 98, N-0175 Oslo, Norway

Comment 8 Roger Larsson 2002-10-18 14:47:25 UTC
QTextEdit works - bug flying to kedit  
(isn't kedit used as internal editor by kmail?)   
Comment 9 Daniel Naber 2002-10-23 20:37:36 UTC
*** Bug 49584 has been marked as a duplicate of this bug. ***
Comment 10 Daniel Naber 2002-10-23 20:40:36 UTC
No,  QTextEdit does not always work, e.g. the KMail signature composer (Configure     
kamil ->  indentites -> modfiy -> signature tag) also shows the problem and it's a 
QTextEdit. but indeed the QTextEdit in qt's examples/textedit works okay. 
Comment 11 Stephan Kulow 2002-10-30 14:19:25 UTC
the bug can only be reproduced with KDE applications when klipper 
is running. Lubos suspects a KClipboard issue 
Comment 12 Lubos Lunak 2002-10-30 17:04:35 UTC
 Being worked on. As a workaround (or maybe even solution, who knows), make sure the 
Klipper utility is configured as 'Separate clipboard and selection' (even if you usually don't run 
Klipper). 
 
 
Comment 13 Carsten Pfeiffer 2002-10-30 17:43:30 UTC
Subject: Re:  cut (CTRL-X, Shift-DEL) does not remove the highlighted text

On Wednesday 30 October 2002 17:04, you wrote:

>  Being worked on. As a workaround (or maybe even solution, who knows), make
> sure the Klipper utility is configured as 'Separate clipboard and
> selection' (even if you usually don't run Klipper).

Lubos, thanks for taking care of this. It's not that I wouldn't care, but I 
can't do it before I'm home from work.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPcAL86WgYMJuwmZtAQE5xQf/dO65gTrAyd2wvfKq2SCYE5pr2fkj/P/g
hNlh9nhTVJfYIFxbKTTLJCMH62AuAILubuQ8mvsb7olqaub5Ws911Qokcn8xrx+r
MTcWe3l/G4fnIeupyYVpykPB94urFoZoaFdwvC0qYdEuSMJayMGnUKQiAUqWpx6X
tQu9K3JKNX4ol11/11DoAVijm9EvttceIqWIaX1Db5Qf+FqD9ggyZeS1GqNA0Gy+
osAsAB7skKzRBuIqGk5u2eA3pXkusk4CQuWyrIxKYKB/v4JVqyDmAekMSzTfLSW1
wMY2fCNwYdmUrTg1i2iclz2gB3N8S8QuZXKj7oS3AeNkIDR24I6ylQ==
=kTFc
-----END PGP SIGNATURE-----

Comment 14 Daniel Naber 2002-10-30 17:54:53 UTC
I experience the bug even without klipper running (haven't tried the suggested work around, as the bug does not really annoy me). 
Comment 15 Lubos Lunak 2002-10-30 17:59:10 UTC
 There was a reason why I noted 'even if you usually don't run Klipper'. It doesn't matter if you 
run Klipper or not. What matters is the setting (because all apps read this setting and do the 
syncing themselves). If you can reproduce the bug even after doing as I said, then we have 
another problem. 
 
Comment 16 Daniel Naber 2002-11-05 22:31:54 UTC
*** Bug 50251 has been marked as a duplicate of this bug. ***
Comment 17 Roger Larsson 2003-01-09 16:22:13 UTC
Ctrl-X now works even with Klipper option: 
"Synchronize contents of the clipboard and the selection" 
 
I am close to mark this as RESOLVED but since I run CVS HEAD and not RC6 I give 
you others a chance to retest. 
Comment 18 Lubos Lunak 2003-04-30 16:22:12 UTC
Worksforme.