Skip to content

Commit

Permalink
fix(ascii_composer): support key binding Shift+space in ascii mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Oct 16, 2017
1 parent a1df9c5 commit 7077389
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rime/gear/ascii_composer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7077389

Please sign in to comment.