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

Issue 15816003: Supports unicode composition(Ctrl+Shift+U) with C-S pressed. (Closed)

Created:
7 years, 7 months ago by Yuki
Modified:
7 years, 7 months ago
Reviewers:
Seigo Nonaka, Yuki
CC:
chromium-reviews, nona+watch_chromium.org, James Su, penghuang+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Supports unicode composition(Ctrl+Shift+U) with C-S pressed. The current implementation does not support to input a hexadecimal sequence (e.g. 3042) with control and shift keys held pressed. Users have to release control and shift keys first, and then users can input a hexadecimal sequence. This CL supports to input a hexadecimal sequence while a user holds control and shift keys pressed. This CL passes a keycode to CharacterComposer::FilterKeyPress() and let it guess what character would be inputted if a user had already released control and shift keys. NOTE: If a user holds shift key pressed, hitting '3' key produces '#' (shift + 3). BUG=126988 TEST=Type "u3042<enter>" with control and shift keys pressed. "あ" will be composed. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202041

Patch Set 1 #

Patch Set 2 : Added a comment. #

Total comments: 2

Patch Set 3 : Fixed based on review comments. #

Patch Set 4 : Changed to ui::GetXDisplay() from base::MessagePumpAuraForUI::GetDefaultXDisplay(). #

Total comments: 2

Patch Set 5 : Added a TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -84 lines) Patch
M ui/base/ime/character_composer.h View 1 2 3 4 4 chunks +10 lines, -7 lines 0 comments Download
M ui/base/ime/character_composer.cc View 1 2 3 7 chunks +32 lines, -6 lines 0 comments Download
M ui/base/ime/character_composer_unittest.cc View 16 chunks +94 lines, -20 lines 0 comments Download
M ui/base/ime/input_method_ibus.h View 4 chunks +14 lines, -7 lines 0 comments Download
M ui/base/ime/input_method_ibus.cc View 18 chunks +60 lines, -44 lines 0 comments Download
M ui/base/ime/input_method_ibus_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Yuki
Could you review this CL? Thanks, Yuki Shiino
7 years, 7 months ago (2013-05-23 05:09:55 UTC) #1
nona
Will take a look, but please add nona@chromium.org instead of nona@google.com. Thank you. 2013/5/23 <yukishiino@chromium.org> ...
7 years, 7 months ago (2013-05-23 07:29:47 UTC) #2
Yuki
Sorry. Changed to nona@chromium.org
7 years, 7 months ago (2013-05-23 07:33:29 UTC) #3
Seigo Nonaka
Please take care of linux_chromeos_clang compile error. https://codereview.chromium.org/15816003/diff/2001/ui/base/ime/character_composer.cc File ui/base/ime/character_composer.cc (right): https://codereview.chromium.org/15816003/diff/2001/ui/base/ime/character_composer.cc#newcode356 ui/base/ime/character_composer.cc:356: Display* display ...
7 years, 7 months ago (2013-05-23 08:19:21 UTC) #4
Yuki
Thanks for the review. Fixed. https://codereview.chromium.org/15816003/diff/2001/ui/base/ime/character_composer.cc File ui/base/ime/character_composer.cc (right): https://codereview.chromium.org/15816003/diff/2001/ui/base/ime/character_composer.cc#newcode356 ui/base/ime/character_composer.cc:356: Display* display = ::XOpenDisplay(NULL); ...
7 years, 7 months ago (2013-05-23 08:48:40 UTC) #5
Seigo Nonaka
lgtm lgtm with one comment. https://codereview.chromium.org/15816003/diff/14001/ui/base/ime/character_composer.cc File ui/base/ime/character_composer.cc (right): https://codereview.chromium.org/15816003/diff/14001/ui/base/ime/character_composer.cc#newcode371 ui/base/ime/character_composer.cc:371: if (GDK_KEY_0 <= keyval ...
7 years, 7 months ago (2013-05-23 11:27:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/15816003/18001
7 years, 7 months ago (2013-05-24 06:10:42 UTC) #7
Yuki
Thanks, now committing. https://codereview.chromium.org/15816003/diff/14001/ui/base/ime/character_composer.cc File ui/base/ime/character_composer.cc (right): https://codereview.chromium.org/15816003/diff/14001/ui/base/ime/character_composer.cc#newcode371 ui/base/ime/character_composer.cc:371: if (GDK_KEY_0 <= keyval && keyval ...
7 years, 7 months ago (2013-05-24 06:24:45 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 09:52:56 UTC) #9
Message was sent while issue was closed.
Change committed as 202041

Powered by Google App Engine
This is Rietveld 408576698