From 707738900168336a75219ae5fc69fa08cc71a4b8 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Mon, 16 Oct 2017 23:40:14 +0800 Subject: [PATCH] fix(ascii_composer): support key binding Shift+space in ascii mode --- src/rime/gear/ascii_composer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rime/gear/ascii_composer.cc b/src/rime/gear/ascii_composer.cc index d43733bcc..e7bdfd459 100644 --- a/src/rime/gear/ascii_composer.cc +++ b/src/rime/gear/ascii_composer.cc @@ -107,8 +107,9 @@ ProcessResult AsciiComposer::ProcessKeyEvent(const KeyEvent& key_event) { } // other keys shift_key_pressed_ = ctrl_key_pressed_ = false; - if (key_event.ctrl()) { - return kNoop; // possible key binding Control+x + // possible key binding: Control+x, Shift+space + if (key_event.ctrl() || (key_event.shift() && ch == XK_space)) { + return kNoop; } Context* ctx = engine_->context(); bool ascii_mode = ctx->get_option("ascii_mode");