[Qt-creator] DeleteEndOfWord does not delete spaces
leandro.melo at nokia.com
leandro.melo at nokia.com
Wed Mar 7 16:58:27 CET 2012
> From: qt-creator-bounces+leandro.melo=nokia.com at qt-project.org
> [qt-creator-bounces+leandro.melo=nokia.com at qt-project.org] on behalf
> of ext Luuk Kuiper [kuiper at hitt.nl]
> Sent: Tuesday, March 06, 2012 2:13 PM
> To: qt-creator at qt-project.org
> Subject: [Qt-creator] DeleteEndOfWord does not delete spaces
>
> Dear all,
>
> When shortcut Ctrl+Del is attached to the command
> DeleteEndOfWordCamelCase I can type this short-cut repeatedly to
> delete consequtive words and spaces and groups of spaces. So in the
> next sentence (with3 spaces between each word) I have to type 4 time
> ctrl+del:
>
> MonKey Cage
>
> When short Ctrl+Del is attached to the command DeleteEndOfWord I would
> expect to type ctrl+del only 3 times, because wihtout CamelCase the
> word MonKey will be deleted with one key stroke.
> But now the three spaces cannot be deleted anymore with ctrl+del.
> And especially with a lot of spaces to delete, it is quit a difference
> to type only once ctrl+del or only del for every space.
>
> Is this a bug or is there a logic explanation for this difference in
> behaviour between DeleteEndOfWordCamelCase and DeleteEndOfWord?
Hi,
this looks indeed like a bug. In particular, I believe that DeleteEndOfWordCamelCase is the incorrect one. This is because at a space there's no remaining "end of word". It makes then no sense to delete anything so the behavior of DeleteEndOfWord is actually appropriate.
The reason for this is probably because the camel case version relies on the general algorithm for camel case *navigation* but it's not handling word boundaries, which is necessary for this operation. Feel free to fill up a report.
Cheers,
Leandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120307/eafccba0/attachment.html>
More information about the Qt-creator
mailing list