Open Bug 157293 Opened 22 years ago Updated 2 years ago

[RFE] text widget should be easier to clear.

Categories

(Core :: XUL, enhancement)

x86
Linux
enhancement

Tracking

()

People

(Reporter: thorgal, Unassigned)

Details

When pasting into text widget I often want to clear its current contents first.
With X-Window way of handling the clipboard this is very cumbersome: I can't use
double click to select everything and then hit delete to remove it, as this
would overwrite clipboard contents. In result I find myself:

- deleting the contents char-by-char with backspace,
- selecting things again after I lose the clipboard on first attempt,

This is obviously very inconvinient.

The text widget has a context-menu, but its "Delete" option is only available if
you have selected some text in this particular widget - which means it is of no
help in this case.

What I'd propose is to extend it with "Clear" option, which would be available
at all times.
Severity: normal → enhancement
Summary: text widget should be easier to clear. → [RFE] text widget should be easier to clear.
click on a text widget to focus it, then press ctrl+u.
Why is destroying the copy buffer when you select text correct behavior for
Linux? None of my other linux apps seem to behave that way.

Openoffice does not do that.
gnotepad doesnt do that.
the text-edit field for the filename in the generic gtk file-open dialog doesn't
do that.
ah, nevermind. The behavior of destroying the copy buffer whenever you put
something in the X-primary buffer has been fixed in the latest builds.

Miloslaw, do you still have the same problem of the clipboard contents getting
overwritten in build 2002082808 or newer?
Mozilla 2002092708

The problem is still there.

1. Select URL1 in a terminal.
2. Select URL2 in location bar and press delete to remove it.
3. Try to paste into location bar.
4. Observe URL2 being pasted.

CTRL-U workaround works fine for me, thanks, but context-menu item wouldn't
hurt, either.
Assignee: jag → nobody
QA Contact: jrgmorrison → xptoolkit.widgets
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.