Skip to content

Commit

Permalink
去掉ctrl切换简繁输入
Browse files Browse the repository at this point in the history
  • Loading branch information
linhuman committed Dec 30, 2019
1 parent bd11a36 commit 227a935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.0.4
6 changes: 4 additions & 2 deletions src/lunispim_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,11 @@ ibus_unispim_engine_process_key_event(IBusEngine *engine,
if ((modifiers & IBUS_SHIFT_MASK) && !(modifiers & IBUS_RELEASE_MASK)) {
shift_mask_key = 1;
}
/*
if ((modifiers & IBUS_CONTROL_MASK) && !(modifiers & IBUS_RELEASE_MASK)) {
control_mask_key = 1;
}

*/
if ((keyval == IBUS_KEY_Shift_R || keyval == IBUS_KEY_Shift_L) &&
(modifiers & IBUS_RELEASE_MASK) &&
(modifiers & IBUS_SHIFT_MASK)) {
Expand All @@ -448,7 +449,7 @@ ibus_unispim_engine_process_key_event(IBusEngine *engine,
shift_mask_key = 0;
}
}

/*
if ((IBUS_KEY_Control_L == keyval || IBUS_KEY_Control_R == keyval) &&
(modifiers & IBUS_CONTROL_MASK) &&
(modifiers & IBUS_RELEASE_MASK) &&
Expand All @@ -467,6 +468,7 @@ ibus_unispim_engine_process_key_event(IBusEngine *engine,
control_mask_key = 0;
}
}
*/
if (modifiers != 0 && modifiers != IBUS_SHIFT_MASK) return False;
//esc
if (keyval == IBUS_KEY_Escape) {
Expand Down

0 comments on commit 227a935

Please sign in to comment.