From a9f5f78914d41ad3fecd6ca9d5396c65d2d15a71 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 19 Apr 2019 11:09:44 +0800 Subject: fixes special symbols --- src/ZYZPhoneticEditor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit