Skip to content

Commit

Permalink
fix: using Shift_L or Shift_R as toggle key
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Feb 5, 2024
1 parent 99fdb2b commit fff61d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IBusChewingPreEdit-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
(STRING_EQUALS(ibus_chewing_pre_edit_get_property_string(self, "default-english-case"), "uppercase") ? 'u' : 'n')
# define chi_eng_toggle_key (STRING_EQUALS(ibus_chewing_pre_edit_get_property_string(self, "chi-eng-mode-toggle"), "caps_lock")) ? 'c' : \
(STRING_EQUALS(ibus_chewing_pre_edit_get_property_string(self, "chi-eng-mode-toggle"), "shift")) ? 's' : \
(STRING_EQUALS(ibus_chewing_pre_edit_get_property_string(self, "chi-eng-mode-toggle"), "shift_l") ? 'l' : 'n')
(STRING_EQUALS(ibus_chewing_pre_edit_get_property_string(self, "chi-eng-mode-toggle"), "shift_l")) ? 'l' : \
(STRING_EQUALS(ibus_chewing_pre_edit_get_property_string(self, "chi-eng-mode-toggle"), "shift_r") ? 'r' : 'n')

Check warning on line 37 in src/IBusChewingPreEdit-private.h

View check run for this annotation

Codecov / codecov/patch

src/IBusChewingPreEdit-private.h#L36-L37

Added lines #L36 - L37 were not covered by tests

/*== Conditional Expression Shortcut ==*/
# define is_plain_zhuyin ibus_chewing_pre_edit_get_property_boolean(self, "plain-zhuyin")
Expand Down

0 comments on commit fff61d1

Please sign in to comment.