Skip to content

feat(android): rearrange the English keyboard's swipe-up symbols - #1188

Merged
H-Chris233 merged 4 commits into
Open-Less:betafrom
DepengWang:feature/english-swipe-symbols
Oct 19, 2026
Merged

H-Chris233 merged 4 commits into
Open-Less:betafrom
DepengWang:feature/english-swipe-symbols

Conversation

@DepengWang

Copy link
Copy Markdown
Contributor

Summary

Rearranges the symbols the Android English keyboard types on a swipe up, and moves the comma and full stop to the bottom row. The pinyin keyboard is the same key view, so it follows.

Only openless-all/app/android/kotlin/OpenLessImeService.kt changes (+15 / −7).

Change

Row Keys Before After
1 q w e r t y u i o p 1 2 3 4 5 6 7 8 9 0 unchanged
2 a s d f g h j k l @ # $ % & - + ( ) ~ @ # ! % & * ( )
3 z x c v b n m : ; ' . , ! ? ' / - _ : ; ?
  • Swipe up on 123 types a comma. Only on the letters layer, where the key is labelled 123; on the other layers it reads ABC and has no swipe.
  • Swipe up on Space types a full stop, on every layer.
  • Neither of those two keys shows a hint on its face. The existing preview bubble names the mark during the swipe, as it does for the letter keys.

Nothing else about the keyboard changes: tap, the hint above each letter key, the preview bubble, Space's long-press (pinyin / English), key sizes, spacing, fonts and colors are as before. The new bottom-row swipes use the swipeUpAction / swipePreview parameters keyboardKey() already has.

Compatibility

  • $ and + are no longer reachable by a swipe up; they are still on the 123 layer. . and , move from the letter grid to Space and 123.
  • In pinyin mode the two new swipes type the half-width , and ., the same as every other swipe-up symbol.

Testing

  • ./gradlew :app:compileArm64DebugKotlin on this branch.
  • node --test scripts/*.test.mjs: 67 of 67 pass.
  • Installed on a OnePlus CPH2573 and a Xiaomi M2011K2C (debug builds of this code merged onto current beta).

Not tested:

  • I have not yet gone through every key on a device after the install.

🤖 Generated with Claude Code

DepengWang and others added 2 commits October 13, 2026 18:49
The digit row is unchanged. The second row now swipes up to
~ @ # ! % & * ( ) and the third to ' / - _ : ; ?. The pinyin keyboard
is the same key view, so it follows.

$ + . , leave the swipe-up layer; they are still on the 123 layer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rearranged letter-grid symbols no longer include , and . — they
move to the bottom row: swipe up on the 123 key for a comma, on Space
for a full stop. Neither key shows a hint; the preview bubble names
the mark during the swipe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DepengWang

Copy link
Copy Markdown
Contributor Author

@HKLHaoBin 你好,这个 PR 调整了英文键盘的上划符号布局,CI 已全绿、可合并。麻烦有空时审核确认一下,谢谢!

@HKLHaoBin

Copy link
Copy Markdown
Collaborator

感谢您的贡献,现在开始审查。

HKLHaoBin
HKLHaoBin previously approved these changes Oct 19, 2026
@H-Chris233

Copy link
Copy Markdown
Collaborator

开始审查

@H-Chris233
H-Chris233 merged commit 4591d28 into Open-Less:beta Oct 19, 2026
7 checks passed
aeoform added a commit to aeoform/openless that referenced this pull request Oct 19, 2026
并入 origin/beta 剩下的 10 个上游 commit(此前分支已合过前 4 个):

- Windows:TSF 组字听写输入(Open-Less#1189)、明文插入模式开关(Open-Less#1182)、
  胶囊显示目标模式(Open-Less#1232)
- Android:arm64 本地 ASR + 云回退/自动切换(Open-Less#1231)、本地配置迁移(Open-Less#1199)、
  草稿条(Open-Less#1187)、悬浮层「永不显示」(Open-Less#1221)、英文键盘上滑符号重排(Open-Less#1188)
- 发布:稳定版直链别名(Open-Less#1198)
- coding-agent:dsh 补丁 YAML 缩进修复(Open-Less#1205)

代码层面零冲突,但本仓较新的依赖版本让上游新代码编译不过,手工收口两处
(都只在 Android 本地迁移包路径上):

1. `zip` 9 vs 2.x —— `ZipFile::name()` 现在返回 `Result<Cow<str>, ZipError>`:
   `.map_err(|_| BundleError::MalformedContainer)?.into_owned()`。
2. `cipher` 0.5(`aes` 钉 0.9.2 带来的版本)把 `XNonce::from_slice` 标成
   deprecated:改用 `&[u8; NONCE_BYTES] -> &XNonce` 的转换。

验证:core 与 linux-egui 全量测试通过、clippy `-D warnings` 干净、egui 四个
JS 契约测试通过、i18n 0 added/0 updated、deb/rpm 打包 + 校验通过
(2.0.2-Beta.1-137)。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Android-specific area:ime IME area area:ux UX area enhancement New feature or request needs-review Needs review P3 Low priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants