summaryrefslogtreecommitdiffstats
path: root/src/ZYZPhoneticEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2019-02-18 13:08:52 +0800
committerPeng Wu <alexepico@gmail.com>2019-02-18 13:08:52 +0800
commit60911931b18008e8daf5eae41bea17447c651105 (patch)
tree7753ace6a64bb5d24edc916e37e90cdbd1d5d359 /src/ZYZPhoneticEditor.cc
parent0eea8718254e8ee73e0481e59dfdd79776545784 (diff)
downloadibus-libzhuyin-60911931b18008e8daf5eae41bea17447c651105.tar.gz
ibus-libzhuyin-60911931b18008e8daf5eae41bea17447c651105.tar.xz
ibus-libzhuyin-60911931b18008e8daf5eae41bea17447c651105.zip
fixes insertSymbol method
Diffstat (limited to 'src/ZYZPhoneticEditor.cc')
-rw-r--r--src/ZYZPhoneticEditor.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc
index 5c95a22..9157453 100644
--- a/src/ZYZPhoneticEditor.cc
+++ b/src/ZYZPhoneticEditor.cc
@@ -942,14 +942,15 @@ PhoneticEditor::getZhuyinCursor (void)
}
gboolean
-PhoneticEditor::insertSymbol (guint keyval)
+PhoneticEditor::insertSymbol (guint keyval, guint keycode, guint modifiers)
{
/* for symbols. */
if (is_full_width_symbol (keyval)) {
if (is_special_symbol (keyval)) {
String choice = keyval;
- if (m_props.modeFullWidth ())
+ if (m_props.modeFullWidth () ||
+ (modifiers & IBUS_SHIFT_MASK))
assert (convert_special_symbol (keyval, choice));
String lookup;
@@ -962,7 +963,8 @@ PhoneticEditor::insertSymbol (guint keyval)
return TRUE;
}
- if (m_props.modeFullWidth ()) {
+ if (m_props.modeFullWidth () ||
+ (modifiers & IBUS_SHIFT_MASK)) {
String choice;
assert (convert_full_width_symbol (keyval, choice));