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

Issue 28121: Do not map virtual keycodes (VK_0 - VK_9) to characters when accelerators in ... (Closed)

Created:
11 years, 10 months ago by jungshik at Google
Modified:
9 years, 7 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Do not map virtual keycodes (VK_0 - VK_9) to characters when accelerators in the UI. If we do that, the result is the layout-dependent. For instance, in fr-FR layout, we get 'a with grave' in place of '0' for Ctrl+0 (normal in Zoom menu). Besides, in Slovak lazout, we get 'e with accent' This CL does not affect the actual behavior of accelerators (see issue 8043 for that), but only change the way they're displayed in the menu (even without this CL, ctrl-0 works fine in fr-FR AZERY layout and Slovak layout). BUG=7444 TEST=Change your kbd layout to French Azery and see what key is shown next to 'Normal' in Page-Zoom menu. It should be 'Ctrl+0'. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10476

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/views/accelerator.cc View 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
jungshik at Google
11 years, 10 months ago (2009-02-25 21:39:33 UTC) #1
cpu_(ooo_6.6-7.5)
LGTM
11 years, 10 months ago (2009-02-25 23:23:07 UTC) #2
cpu_(ooo_6.6-7.5)
Actually... I am not sure anymore. According to wikipedia (http://en.wikipedia.org/wiki/AZERTY) "The digits 0 to 9 ...
11 years, 10 months ago (2009-02-26 01:45:56 UTC) #3
jungshik at Google
On 2009/02/26 01:45:56, cpu wrote: > Actually... I am not sure anymore. > > According ...
11 years, 10 months ago (2009-02-26 19:34:55 UTC) #4
cpu_(ooo_6.6-7.5)
11 years, 10 months ago (2009-02-26 20:21:13 UTC) #5
I don't know what is the right answer :)

It seems your fix helps if the person changed the layout but did not actually
changed the physical keyboard. Mine seems to work better the other way.

I leave it up to you.


On 2009/02/26 19:34:55, Jungshik Shin wrote:
> On 2009/02/26 01:45:56, cpu wrote:
> > Actually... I am not sure anymore.
> > 
> > According to wikipedia (http://en.wikipedia.org/wiki/AZERTY)
> > 
> > "The digits 0 to 9 are on the same keys, but the shift key must be pressed
to
> > type them. The non-shifted keys are used for accented lowercase characters."
> 
> Ooops. I landed this morning not noticing your reply. 
>  
> > So if we display "Ctrl + 0" a person that actually has an azerty keyboard
will
> > be mislead. See screen shot:
> > 
> > http://en.wikipedia.org/wiki/File:AZERTY_keyboard_layout.JPG
> 
> Yes, that's what I meant in my comment (sorry if it's not clear. see also
> http://crbug.com/8043 ). '+' in en-US QWERTY also needs 'shift' (unshifted, we
> get '='), but for zoom in, we show 'ctrl++' rather than 'ctrl+=' because '+'
has
> an obvious intuitive meaning. I think we can say the same thing about 'a with
> grave accent' vs '0'. 
> 
> Also, note that 'ctrl+0' also works with '0' in the number pad (even in fr
> AZERY). 
> 
> Given all these, I think this change is better overall than otherwise.  What
> would you say?

Powered by Google App Engine
This is Rietveld 408576698