diff options
author | Peng Wu <alexepico@gmail.com> | 2016-08-23 10:28:07 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-08-23 10:28:07 +0800 |
commit | 97f89f6f939d86da27565897d82e8fafff7298cb (patch) | |
tree | b2e3c790bcc20a72d30b01f58c2b74a191f2fe6f /src/ZYZZhuyinEngine.cc | |
parent | 6a2db8748b9ab84ae1d0ae9e60589a9051f2a27a (diff) | |
download | ibus-libzhuyin-97f89f6f939d86da27565897d82e8fafff7298cb.tar.gz ibus-libzhuyin-97f89f6f939d86da27565897d82e8fafff7298cb.tar.xz ibus-libzhuyin-97f89f6f939d86da27565897d82e8fafff7298cb.zip |
use Shift-Space to toggle full English mode
Diffstat (limited to 'src/ZYZZhuyinEngine.cc')
-rw-r--r-- | src/ZYZZhuyinEngine.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ZYZZhuyinEngine.cc b/src/ZYZZhuyinEngine.cc index 55cf039..82c2643 100644 --- a/src/ZYZZhuyinEngine.cc +++ b/src/ZYZZhuyinEngine.cc @@ -146,6 +146,12 @@ ZhuyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers) /* store ignored key event by editors */ m_prev_pressed_key = retval ? IBUS_VoidSymbol : keyval; + if (modifiers == IBUS_SHIFT_MASK && keyval == IBUS_space) { + m_props.toggleModeFullEnglish (); + m_prev_pressed_key = keyval; + return TRUE; + } + return retval; } |