Issue 23872 - Deleting the space with ctrl+backspace/delete
Summary: Deleting the space with ctrl+backspace/delete
Status: CONFIRMED
Alias: None
Product: ui
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: All All
: P3 Trivial with 10 votes (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 12535 52110 56158 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-12-25 11:45 UTC by 3clips3
Modified: 2014-10-20 15:52 UTC (History)
9 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Fix (530 bytes, patch)
2014-10-14 19:22 UTC, Volkan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description 3clips3 2003-12-25 11:45:51 UTC
Pressing ctrl+backspace should not (it might be customizable) delete the space
before the deleted word.
Pressing ctrl+delete should not (it might be customizable) delete the space
after the deleted word.
Comment 1 Oliver Specht 2004-01-05 08:47:00 UTC
os->cj: Should it or not?
Comment 2 christian.jansen 2004-03-23 15:16:36 UTC
CJ -> OS: We should not delete the space.
Comment 3 Oliver Specht 2004-06-13 10:14:06 UTC
Target set.
Comment 4 Oliver Specht 2004-11-05 15:07:57 UTC
.
Comment 5 lohmaier 2008-07-29 15:16:44 UTC
*** Issue 52110 has been marked as a duplicate of this issue. ***
Comment 6 frank.meies 2008-08-04 07:58:37 UTC
*** Issue 56158 has been marked as a duplicate of this issue. ***
Comment 7 frank.meies 2008-08-04 08:00:28 UTC
.
Comment 8 ace_dent 2008-10-22 15:22:05 UTC
*** Issue 12535 has been marked as a duplicate of this issue. ***
Comment 9 ace_dent 2008-10-22 15:23:16 UTC
Issue 12535 argues the counter point. This should be discussed. However, key to
both is consistent behavior between applications (Writer, Impress, etc).

Andrew

Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, Post v3 ~
Comment 10 ace_dent 2008-10-22 15:29:43 UTC
Just for info, some related problems:
 Issue 23872 - Deleting the space with ctrl+backspace/delete
 Issue 50014 - Ctrl backspace (under rare circumstances) deletes to the right of
the cursor
 Issue 51051 - Ctrl-delete deletes to the left, if a space follows the cursor
position

Regards,
Andrew
Comment 11 Dejan Budimir 2013-09-02 12:50:48 UTC
This is by way of discussion. (I am still using OO-3.4.0, so I'm not sure whether this is accurate).

The standard behavior might very well be a kind of statement, intended to demonstrate that "this is not MS Office," but, given that even the basic textarea editor i'm currently typing in adheres to the MS standard, it ends up making a much more inclusive statement.

The main issue, however, is its inconsistency with what it is supposed to do (at least in the old 3.4.0 version I'm still using).

1. Deleting from within a word (i.e. partial word-deletion) will delete to start of word proper.

2. Deleting from end of word plus whitespace (i.e. from start of next word) will delete to start of word proper.

3. Deleting from end of word proper, however, will delete to end of previous word.

In other words, deleting at least a single character either more or less than the length of the word, will "delete to start of word" otherwise it will "delete to end of previous word".

Furthermore, ctrl-left will still jump to the beginning of a word proper, not to the end of previous ones. When using ctrl-backspace one would therefore expect this jumping to be mirrored in some way.

Finally, it is much quicker (or at least it feels much smoother) to do a "ctrl-backspace, backspace" sequence (to get rid of the superfluous space) manually, than to do a "ctrl-backspace, space" sequence. But maybe that's me.

That being said, however, since this can easily be worked around (by recording a macro to simulate the sequence "Ctrl+Shift+Left, Delete") I, too, don't think this such a huge problem at all.
Comment 12 Volkan 2014-10-08 01:00:00 UTC
Problem description: 

Using Ctrl+Backspace combination removes the word with the space between the deleted word and the previous word.

Steps to reproduce:
1. Open Write
2. Type at least two words
3. Go to end of the line
4. Use Ctrl+Backspace

Current behavior:

It also removes the space

Expected behavior:

As usual, this should only remove the word as the other applications do.

See related bug from LibreOffice: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=63819

Maybe this patch can solve the issue here, as well.
Comment 14 Regina Henschel 2014-10-14 21:11:16 UTC
We need a notice of the original author, that he provides this under Apache License, Version 2.0. Or discuss on the dev-mailing list, whether the change is so small, that it does not need a license, and then link here to the decision.
Comment 15 Marcus 2014-10-14 21:48:18 UTC
@Regina:
I remembered that the AOO project is accepting little patched as it is without anything further and found it at [1] (see the 3rd bullet point). So, when looking into the patch I see it fits to the "little" case.

I would say that we can accept it as it is.

[1] http://openoffice.apache.org/contributing-code.html
Comment 16 Samuel Mehrbrodt 2014-10-15 11:58:39 UTC
You can use that patch under the ALv2 license.
Comment 17 SVN Robot 2014-10-19 19:12:17 UTC
"regina" committed SVN revision 1632977 into trunk:
#i23872 Delete the space with ctrl-backspace consistent
Comment 18 Volkan 2014-10-19 19:36:27 UTC
Can we close this and the duplicate reports:

(In reply to ace_dent from comment #10)
> Just for info, some related problems:
>  Issue 23872 - Deleting the space with ctrl+backspace/delete
>  Issue 50014 - Ctrl backspace (under rare circumstances) deletes to the
> right of
> the cursor
>  Issue 51051 - Ctrl-delete deletes to the left, if a space follows the cursor
> position
> 
> Regards,
> Andrew

Thanks.
Comment 19 Regina Henschel 2014-10-19 19:57:14 UTC
You should close it, when you have verified in a daily build, that it works as intended and does not break anything.

Of cause I have tested it locally, but I have only got Windows7 and tests are needed for Linux and Mac too.

Issue 50014 and issue 51051 are about deleting to the wrong direction, that is different from deleting or not deleting a space.
Comment 20 Volkan 2014-10-20 15:52:49 UTC
Thanks,

I will be waiting for the latest daily as the last one was on 17.10.

http://ci.apache.org/projects/openoffice/index.html#linux64