Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2761)

Issue 3741043: Fix Alt+Shift hotkey issue for chrome os (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by Peng
Modified:
13 years, 6 months ago
Reviewers:
Yusuke Sato, suzhe
CC:
satorux
Base URL:
git@github.com:/ibus/ibus.git@master
Visibility:
Public.

Description

Fix Alt+Shift hotkey issue for chrome os BUG=chromium-os:6225 TEST=manual

Patch Set 1 #

Total comments: 8

Patch Set 2 : Update CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -5 lines) Patch
M src/ibushotkey.c View 1 6 chunks +77 lines, -5 lines 0 comments Download

Messages

Total messages: 4
Peng
13 years, 6 months ago (2010-12-25 07:17:07 UTC) #1
Yusuke Sato
Hi, it was necessary to modify your patch a little to make Shift+Alt work on ...
13 years, 6 months ago (2010-12-25 13:38:48 UTC) #2
Peng
http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c File src/ibushotkey.c (right): http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c#newcode404 src/ibushotkey.c:404: normalize_modifiers (keyval, modifiers)); On 2010/12/25 13:38:48, Yusuke Sato wrote: ...
13 years, 6 months ago (2010-12-25 18:08:32 UTC) #3
Yusuke Sato
13 years, 6 months ago (2010-12-25 23:58:46 UTC) #4
LGTM!

On 2010/12/25 18:08:32, Shawn.P.Huang wrote:
> http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c
> File src/ibushotkey.c (right):
> 
> http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c#newcode404
> src/ibushotkey.c:404: normalize_modifiers (keyval, modifiers));
> On 2010/12/25 13:38:48, Yusuke Sato wrote:
> > This is not an issue in this CL, but shouldn't we use priv->mask here? I
mean,
> > 
> > normalize_modifiers (keyval, modifiers & priv->mask));
> 
> Done.
> 
> http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c#newcode459
> src/ibushotkey.c:459: .modifiers = normalize_modifiers (keyval, modifiers)
> On 2010/12/25 13:38:48, Yusuke Sato wrote:
> > ditto.
> > 
> > normalize_modifiers (keyval, modifiers & priv->mask)
> 
> Done.
> 
> http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c#newcode545
> src/ibushotkey.c:545: if (modifiers != (prev_modifiers | IBUS_RELEASE_MASK))
> On 2010/12/25 13:38:48, Yusuke Sato wrote:
> > This line caused a problem. As I wrote at
> > http://code.google.com/p/chromium-os/issues/detail?id=6225#c18 , in the
> > alt+shift case, this condition will always be evaluated as false. I think
you
> > meant to say
> > 
> > 
> >         /* modifiers should be same except the release bit */
> >         if (normalize_modifiers (keyval, modifiers & priv->mask) !=
> >             (normalize_modifiers (prev_keyval, prev_modifiers & priv->mask)
|
> > IBUS_RELEASE_MASK))
> >             return 0;
> 
> Done.
> 
> http://codereview.appspot.com/3741043/diff/1/src/ibushotkey.c#newcode581
> src/ibushotkey.c:581: .modifiers = modifiers & priv->mask,
> On 2010/12/25 13:38:48, Yusuke Sato wrote:
> > I believe that this line should be changed as well:
> > 
> > .modifiers = normalize_modifiers (keyval, modifiers & priv->mask),
> 
> Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b