GNOME Bugzilla – Bug 115549
Delete key causes entire object to be deleted when editing text
Last modified: 2009-06-03 19:20:03 UTC
In Win32 version there is a bug that when you try to edit text inside a object and press the delete key. The program deletes the entire object because it is still selected instead of a single letter. This bug does not exist on Linux versions. Version test: 0.91 How to reproduce: Create a new object, double click on object to enter text. Type a few letters, move back with arrors or mouse and try to delete a letter. Result: Entire object deleted. Expected: Only one letter to be deleted. Notes: It appears that the object remains selected after double click and that is the cause of it being deleted. Maybe the object should be unselected on edit text?
chaging OS to Windows Umm yeah the text widget sucks, i think Lars has something in mind to completely replace it. i get this too, as a workaround backspace works alright
Yes, I do indeed intend to replace the current hacky input system with a GtkTextView derivative. This would also allow such nice things as editing different fields of an object in the diagram and tabbing between fields. Volunteers to help/discuss UI issues would be greatly appreciated. This is however a big enough change that I won't be doing it for 0.92.
*** Bug 118831 has been marked as a duplicate of this bug. ***
by no means OS specific, see bug #11831
*** Bug 123210 has been marked as a duplicate of this bug. ***
this bug is still present in dia 0.93 (mdk linux cooker version)...
Yes. The rework of text entry mentioned above is in the works for 0.94.
Del still deletes the text object on Linux and Win32
Indeed. Done some upgrades on the text entry system, but even 0.95 won't have all text entry done in embedded GtkEntry widgets (unless somebody suddenly hacks it up:). Underlying problem, for those interested, is that there is no difference between an object being selected and its text being edited, it is the same state. Until that changes, Del will work wrongly for either deleting objects or deleting text.
*** Bug 144195 has been marked as a duplicate of this bug. ***
*** Bug 153451 has been marked as a duplicate of this bug. ***
*** Bug 304749 has been marked as a duplicate of this bug. ***
Mmmh... when will the new text widgets be ready? This 'delete' feature is eh... eh... quite different from my usability.
*** Bug 323992 has been marked as a duplicate of this bug. ***
*** Bug 325322 has been marked as a duplicate of this bug. ***
Although this may look like a choice between pest and cholera: By reassigning the old hotkey (ctrl-D) to Edit/Delete you can have back the feature of Delete working in text edits. All the original code is still there.
*** Bug 329599 has been marked as a duplicate of this bug. ***
*** Bug 334130 has been marked as a duplicate of this bug. ***
*** Bug 342130 has been marked as a duplicate of this bug. ***
*** Bug 461682 has been marked as a duplicate of this bug. ***
Just because I typed this in another bug I copy it here. "Steps to reproduce: - Create a text object in the diagram. - Write some text. - Move back with arrow keys to the middle of the text. - "pretend to remove some text to the right of the cursor" by pressing the del key. - See how the text you typed disappear. For a long time I've thought of this as a "feature", but it's been too long and I still have a hard time every time I forget about it and loose text. Please, while editing the text in an object, use the Del key as expected!" What's the status of this?
There is no reason for this bug to be in NEEDINFO. In fact a lot of info is provided. Mode discussion on the mailing list: http://mail.gnome.org/archives/dia-list/2007-September/msg00078.html But IMHO just reverting to ctrl+D is not really an option nowadays, although I suggested it 20 month ago ;)
Finally the real solution hit SVN ;) Delete used for text editing (when in text editing mode) and to delete objects otherwise: 2007-10-14 Hans Breuer <hans@breuer.org> Next stab on dedicated text edit mode: * app/textedit_tool.[ch] app/tool.[ch] app/cursors.[ch] app/interface.c app/Makefile.am app/makefile.msc data/display-ui.xml data/integrated-ui.xml data/popup-ui.xml : text edit mode reflected in toolbox, it is too different from normal modification * app/diagram.c app/menu.c : make Cut, Copy, Paste, Delete and Duplicate menu entries insensitive when text is edited * app/pixmaps/textedit.png : an ugly icon * app/create_object.c app/disp_callbacks.c : deal with transitions from one tool to to the other * app/textedit.[ch](textedit_activate_object): tell if editing started
*** Bug 497349 has been marked as a duplicate of this bug. ***
*** Bug 518790 has been marked as a duplicate of this bug. ***
*** Bug 528737 has been marked as a duplicate of this bug. ***
*** Bug 580235 has been marked as a duplicate of this bug. ***
*** Bug 584757 has been marked as a duplicate of this bug. ***