Skip to content

Commit 7077389

Browse files
committed
fix(ascii_composer): support key binding Shift+space in ascii mode
1 parent a1df9c5 commit 7077389

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rime/gear/ascii_composer.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ ProcessResult AsciiComposer::ProcessKeyEvent(const KeyEvent& key_event) {
107107
}
108108
// other keys
109109
shift_key_pressed_ = ctrl_key_pressed_ = false;
110-
if (key_event.ctrl()) {
111-
return kNoop; // possible key binding Control+x
110+
// possible key binding: Control+x, Shift+space
111+
if (key_event.ctrl() || (key_event.shift() && ch == XK_space)) {
112+
return kNoop;
112113
}
113114
Context* ctx = engine_->context();
114115
bool ascii_mode = ctx->get_option("ascii_mode");

0 commit comments

Comments
 (0)