summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2019-04-19 11:09:44 +0800
committerPeng Wu <alexepico@gmail.com>2019-04-19 11:09:44 +0800
commita9f5f78914d41ad3fecd6ca9d5396c65d2d15a71 (patch)
treed596a1daf38a886217a02fb8b03d531c45bbb6a1
parente352715ab9678d5b4a1b09ccf0cc6d7f61fd2a49 (diff)
downloadibus-libzhuyin-a9f5f78914d41ad3fecd6ca9d5396c65d2d15a71.zip
ibus-libzhuyin-a9f5f78914d41ad3fecd6ca9d5396c65d2d15a71.tar.gz
ibus-libzhuyin-a9f5f78914d41ad3fecd6ca9d5396c65d2d15a71.tar.xz
fixes special symbols
-rw-r--r--src/ZYZPhoneticEditor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc
index c7b57ff..a506a1b 100644
--- a/src/ZYZPhoneticEditor.cc
+++ b/src/ZYZPhoneticEditor.cc
@@ -954,7 +954,10 @@ PhoneticEditor::insertSymbol (guint keyval, guint keycode, guint modifiers)
if (is_special_symbol (keyval)) {
String choice = keyval;
if (m_props.modeFullWidth () ||
- (modifiers & IBUS_SHIFT_MASK))
+ (modifiers & IBUS_SHIFT_MASK) ||
+ (keyval == IBUS_bracketleft ||
+ keyval == IBUS_bracketright ||
+ keyval == IBUS_apostrophe))
assert (convert_special_symbol (keyval, choice));
String lookup;