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

Issue 1702015: Support engine specific hotkey. (Closed)

Created:
10 years, 7 months ago by James Su
Modified:
9 years, 7 months ago
Reviewers:
Yusuke Sato, satorux1
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/ibus.git
Visibility:
Public.

Description

Support engine specific hotkey. BUG=http://crosbug.com/2543 TEST=none With this CL, each engine can specify one or more special activation hotkeys. This CL doesn't support customizing global hotkeys per engine. I'd still prefer to customize the global hotkeys based on current locale rather than input method engine. Add hotkeys property to IBusEngineDesc, so that each engine can specify their own special hotkeys. This is useful for input methods that have dedicated hotkeys, such as Japanese input methods, which has a dedicated hotkey key: Kana.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -28 lines) Patch
M bus/ibusimpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M bus/ibusimpl.c View 13 chunks +165 lines, -18 lines 0 comments Download
M ibus/component.py View 1 chunk +2 lines, -2 lines 0 comments Download
M ibus/enginedesc.py View 6 chunks +10 lines, -3 lines 0 comments Download
M src/ibusenginedesc.h View 4 chunks +29 lines, -1 line 0 comments Download
M src/ibusenginedesc.c View 12 chunks +32 lines, -3 lines 0 comments Download
M src/ibushotkey.h View 1 chunk +13 lines, -1 line 0 comments Download
M src/ibushotkey.c View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Yusuke Sato
(sorry for the terrible delay! Now all Tokyo members are back to work.) Thanks for ...
10 years, 7 months ago (2010-05-11 15:30:45 UTC) #1
James Su
10 years, 7 months ago (2010-05-11 17:02:15 UTC) #2
在 2010年5月11日 上午8:30, <yusukes@chromium.org>写道:

> (sorry for the terrible delay! Now all Tokyo members are back to work.)
> Thanks for the patch! LGTM++
>
> I'm fine with the current code, but let me ask two detailed questions:
>
> 1) I understood that with this patch we could support かな (Kana) and 英数
> (Eisu)
> keys, by adding Kana key to mozc and Eisu key to xkb:us::eng. But I'm still
> not
> sure if this patch is sufficient to support Ctrl+space, which is common IME
> toggle key among Chinese IME users. Can you let me know how we can support
> Ctrl+space? Just add the hot-key to pinyin AND xkb:us::eng to simulate
> toggle?
>
I still don't have a good idea on how to support ctrl+space. Adding such
thing into engine may make things much more complicated. For now, I'd prefer
to have different sets of predefined global hotkeys for different locales,
but not sure if it's supported by current preferences architecture.


>
> 2) Is it possible to upstream this change? This patch is
> backward-compatible and
> does not break existing engines, right?
>
This patch adds a member to EngineDisc, so I not sure if it can maintain
backward-compatibility for all engines. I talked to Huang Peng, he would
like to consider this patch later.


>
> --Yusuke
>
>
> http://codereview.chromium.org/1702015/show
>

Powered by Google App Engine
This is Rietveld 408576698