Skip to content

Commit

Permalink
feat: Enable new option to disable shift toggle key
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jul 20, 2024
1 parent 110b5af commit a0075c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/setup/ibus-setup-chewing-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const gchar *sel_key_ids[] = {
// clang-format on

const gchar *chi_eng_mode_toggle_ids[] = {
"caps_lock", "shift", "shift_l", "shift_r", NULL,
"disable", "caps_lock", "shift", "shift_l", "shift_r", NULL,
};

const gchar *sync_caps_lock_ids[] = {
Expand Down
3 changes: 2 additions & 1 deletion src/setup/ibus-setup-chewing-window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,15 @@
<property name="model">
<object class="GtkStringList">
<items>
<item translatable="yes">Disable</item>
<item translatable="yes">Caps Lock</item>
<item translatable="yes">Shift</item>
<item translatable="yes">Shift_L</item>
<item translatable="yes">Shift_R</item>
</items>
</object>
</property>
<property name="selected">1</property>
<property name="selected">2</property>
</object>
</child>
<child>
Expand Down
4 changes: 3 additions & 1 deletion src/setup/org.freedesktop.IBus.Chewing.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
</key>
<key name="chi-eng-mode-toggle" type="s">
<choices>
<choice value="disable"/>
<choice value="caps_lock"/>
<choice value="shift"/>
<choice value="shift_l"/>
Expand All @@ -116,7 +117,8 @@
<default l10n="messages">"caps_lock"</default>
<summary>Chinese/Alphanumeric Mode Toggle Key</summary>
<description>
</description>
Toggle Chinese/Alphanumeric mode with key
</description>
</key>
<key name="default-english-case" type="s">
<choices>
Expand Down

0 comments on commit a0075c0

Please sign in to comment.