Skip to content

ReturnKey 回车键

发送回车 / 换行 / 提交(根据当前输入框的 IME action)。

字段

字段类型必填说明
typestring固定为 "ReturnKey"
swipeobject滑动时执行的 MacroAction
swipeLabelstring滑动提示文字
weight / rowHeightPercent / 颜色字段共通字段相同

智能图标

ReturnKey 会根据当前输入框的 imeOptions 自动显示 "Done" / "Search" / "Send" / "Go" 等图标,无需在 JSON 中配置。

示例

json
{ "type": "ReturnKey", "weight": 0.2 }

带滑动调用换行符的备选行为(在不支持回车的输入框中插入换行):

json
{
  "type": "ReturnKey",
  "weight": 0.2,
  "swipe": { "macro": [ { "type": "text", "text": "\n" } ] },
  "swipeLabel": "↵"
}

相关页面

本项目基于 fcitx5-android/fcitx5-android 修改。源码与文档以 LGPL-2.1 发布。