Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Issue 92047: Don't change selection if some texts were already selected.... (Closed)

Created:
11 years, 8 months ago by hamaji
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Don't change selection if some texts were already selected. This patch changes the behavior of right click for a textarea. Before this patch, right click changes the selection like: "chr**ome" => "*chrome*" "c*hro*me" => "*chrome*" "chr*ome *" => "*chrome* " "* chrome *" => " *chrome* " "*:chrome:*" => ":*chrome*:" "*chrome browser*" => "*chrome browser*" (no change) where characters enclosed by asterisks are selected. After this patch, only the first change happens (i.e., no texts were selected). BUG=7297

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -6 lines) Patch
M webkit/glue/context_menu_client_impl.cc View 1 2 3 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hamaji
Hi, I'd like ask you to review this patch, which changes the behavior of left ...
11 years, 8 months ago (2009-04-22 23:42:05 UTC) #1
sidchat (Google)
I understand what your patch does, but the description is a bit misleading to me. ...
11 years, 8 months ago (2009-04-23 00:15:29 UTC) #2
hamaji
Thanks for the comments! On 2009/04/23 00:15:29, sidchat (Google) wrote: > I understand what your ...
11 years, 8 months ago (2009-04-23 00:30:49 UTC) #3
M-A Ruel
I don't know particularly this code so I have no comment. I just don't know ...
11 years, 8 months ago (2009-04-23 00:39:37 UTC) #4
hamaji
Yes, I've seen you by svn blame. Thanks for your review. http://codereview.chromium.org/92047/diff/2001/3001 File webkit/glue/context_menu_client_impl.cc (right): ...
11 years, 8 months ago (2009-04-23 17:22:26 UTC) #5
sidchat (Google)
> Ah, I see. I guess showing no spell correction for "Runn" case would > ...
11 years, 8 months ago (2009-04-23 17:39:27 UTC) #6
hamaji
11 years, 8 months ago (2009-04-23 17:55:11 UTC) #7
On 2009/04/23 17:39:27, sidchat (Google) wrote:
> > Ah, I see. I guess showing no spell correction for "Runn" case would > be
the
> best? 
> Well, technically yes, but that means we now have to bring in more
complications
> - determine whether a word is partially selected or selected as a whole - and
> then trigger a suggestion based on that.
> 
> But it is also true that selection of partial words is also done for cut/paste
> etc, for which this patch is food.
> 
> Alright, so let us submit this patch for now. As such this will be rare case,
> and even when suggestions for partial words do come up, it wont be critical.
> 
> So, LGTM from my side!

Ah, thanks. Could you check this in? I don't have chromium account yet.

By the way, I've just found that this fixes another weird behavior: in the
"Runn" case, right click changes the selection to "Running", but the context
menu shows "Search Google for 'Runn'".

Thanks,

> 
> > but I'm totally not sure. I agree that we need inputs from experts. > So,
> > how can I contact UI experts?
> > 
> > Thanks,
> > 
> > > 
> > > On 2009/04/22 23:42:05, hamaji wrote:
> > > > Hi,
> > > > 
> > > > I'd like ask you to review this patch, which changes the behavior of
left
> > > click
> > > > for textarea. Though I believe this is a better behavior, I'm not 100%
> sure
> > if
> > > > we should stop changing selection when some texts are already selected.
If
> > > there
> > > > are something unclear, please ask me.
> > > > 
> > > > Thanks,

Powered by Google App Engine
This is Rietveld 408576698