From 4fb922d831afcc5bf565ab6bd72f2aa369730eb8 Mon Sep 17 00:00:00 2001 From: luminosara <87697012+luminosara@users.noreply.github.com> Date: Sun, 30 Mar 2025 00:51:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9A=E5=88=B6=E7=BB=84=E5=90=88?= =?UTF-8?q?=E9=94=AE=E9=85=8D=E7=BD=AE=E7=A4=BA=E4=BE=8B=20(#1131)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- double_pinyin.schema.yaml | 14 ++++++++++++++ double_pinyin_abc.schema.yaml | 14 ++++++++++++++ double_pinyin_flypy.schema.yaml | 14 ++++++++++++++ double_pinyin_mspy.schema.yaml | 14 ++++++++++++++ double_pinyin_sogou.schema.yaml | 14 ++++++++++++++ double_pinyin_ziguang.schema.yaml | 14 ++++++++++++++ rime_ice.schema.yaml | 16 +++++++++++++++- 7 files changed, 99 insertions(+), 1 deletion(-) diff --git a/double_pinyin.schema.yaml b/double_pinyin.schema.yaml index 760a67e..4a2bcf8 100644 --- a/double_pinyin.schema.yaml +++ b/double_pinyin.schema.yaml @@ -302,6 +302,20 @@ key_binder: # bindings: # 也可以再增加方案专有的 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射 diff --git a/double_pinyin_abc.schema.yaml b/double_pinyin_abc.schema.yaml index 88d932a..d334ade 100644 --- a/double_pinyin_abc.schema.yaml +++ b/double_pinyin_abc.schema.yaml @@ -302,6 +302,20 @@ key_binder: # bindings: # 也可以再增加方案专有的 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射 diff --git a/double_pinyin_flypy.schema.yaml b/double_pinyin_flypy.schema.yaml index 7e1fb78..d87ff49 100644 --- a/double_pinyin_flypy.schema.yaml +++ b/double_pinyin_flypy.schema.yaml @@ -302,6 +302,20 @@ key_binder: # bindings: # 也可以再增加方案专有的 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射 diff --git a/double_pinyin_mspy.schema.yaml b/double_pinyin_mspy.schema.yaml index cd842e7..514fea1 100644 --- a/double_pinyin_mspy.schema.yaml +++ b/double_pinyin_mspy.schema.yaml @@ -303,6 +303,20 @@ key_binder: # bindings: # 也可以再增加方案专有的 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射 diff --git a/double_pinyin_sogou.schema.yaml b/double_pinyin_sogou.schema.yaml index 3c3a36f..05e3f1e 100644 --- a/double_pinyin_sogou.schema.yaml +++ b/double_pinyin_sogou.schema.yaml @@ -303,6 +303,20 @@ key_binder: # bindings: # 也可以再增加方案专有的 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射 diff --git a/double_pinyin_ziguang.schema.yaml b/double_pinyin_ziguang.schema.yaml index 65213a8..c836ed0 100644 --- a/double_pinyin_ziguang.schema.yaml +++ b/double_pinyin_ziguang.schema.yaml @@ -301,6 +301,20 @@ key_binder: # bindings: # 也可以再增加方案专有的 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射 diff --git a/rime_ice.schema.yaml b/rime_ice.schema.yaml index adc7f27..e7c8056 100644 --- a/rime_ice.schema.yaml +++ b/rime_ice.schema.yaml @@ -6,7 +6,7 @@ schema: schema_id: rime_ice name: 雾凇拼音 - version: "2025-02-24" + version: "2025-03-30" author: - Dvel description: | @@ -403,6 +403,20 @@ key_binder: # bindings: # 也可以再增加方案专有的快捷键 +# editor 用来定制操作键的行为,以下是默认行为 https://github.com/rime/librime/blob/master/src/rime/gear/editor.cc +editor: + bindings: + space: confirm # 空格键:上屏候选项 + Return: commit_raw_input # 回车键:上屏原始输入 + Control+Return: commit_script_text # Ctrl+回车键:上屏变换后输入(经过 preedit_format 转换的) + Control+Shift+Return: commit_comment # Ctrl+Shift+回车键:上屏 comment + BackSpace: revert # 退格键:向前删除(撤消上次输入) + Delete: delete # Delete 键:向后删除 + Control+BackSpace: back_syllable # Ctrl+退格键:删除一个音节 + Control+Delete: delete_candidate # Ctrl+Delete键:删除或降权候选项 + Escape: cancel # Esc 键:取消输入 + + # 拼写设定 speller: # 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射