Skip to content

Commit

Permalink
im_key_press: simplify shift_only/forward
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Oct 9, 2024
1 parent 2a02c6b commit 321e3dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions im.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ int im_key_press(struct wlchewing_state *state, uint32_t key) {
* we should not arm timer in later case or it may reset our
* state used to check whether only shift is pressed.
*/
if (state->forwarding) {
return state->shift_only ? 0 : KEY_HANDLE_FORWARD;
} else if (state->shift_only) {
if (state->shift_only) {
return 0;
} else if (state->forwarding) {
return KEY_HANDLE_FORWARD;
}

if (state->bottom_panel) {
Expand Down

0 comments on commit 321e3dc

Please sign in to comment.