Add support for Ctrl modifier key and classic keyboard shortcuts (Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+A)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reading the Android input-method code that handles key presses and InputConnection, along with the layout JSON parsing and rendering paths; the issue does not name specific files or tests. Check how existing modifier keys are represented and how editor actions are dispatched. Done means a configurable Ctrl key can trigger the requested copy, paste, cut, and select-all shortcuts; optional shortcuts and visual feedback are secondary.
由索引模型根據 Issue 內容生成。
描述
Dear LeanType developers,
First of all, thank you for this great open-source keyboard — it's lightweight, privacy-friendly, and highly customizable.
I would like to request a feature that would significantly improve productivity for users who type a lot of text:
Add a Ctrl modifier key and support for classic keyboard shortcuts like:
Ctrl + C — Copy
Ctrl + V — Paste
Ctrl + X — Cut
Ctrl + A — Select All
Ctrl + Z — Undo (optional)
Ctrl + Y — Redo (optional)
Ctrl + S — Save (optional)
Ctrl + F — Find (optional)
Why this is important:
Many users are accustomed to these shortcuts from desktop environments and physical keyboards.
Other Android keyboards (e.g., jbak2, ru7pro, Hackers Keyboard) already support this natively.
It would make LeanType a more viable alternative for power users who rely on text editing on mobile devices.
Technical note:
This can be implemented by tracking the state of the Ctrl key (pressed/released) and intercepting subsequent key presses via InputConnection. The shortcut actions can then be mapped to standard EditorInfo commands like EditorInfo.IME_ACTION_COPY, EditorInfo.IME_ACTION_PASTE, etc.
Suggested implementation:
Add a new key type: "modifier": "ctrl" in layout JSON
When Ctrl is held and a letter key is pressed, execute the corresponding shortcut instead of inserting the character
Visual feedback (e.g., highlighted Ctrl key when active) would be a nice bonus
Use case:
As a user, I want to place a Ctrl key on the left side of the bottom row (next to ?123) and use it with C, V, X, A for fast text manipulation — just like on a physical keyboard.
I hope you consider adding this feature. It would make LeanType not just a minimalist Gboard alternative, but a truly professional-grade keyboard.
Thank you for your time and effort!
P.S. I can help with testing if needed.
- 主要語言
- Kotlin
- 星號
- 1k
- 分支
- 59
- 平均合併
- 13 小時 11 分鐘
- 30 天內合併 PR
- 47
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
LeanBitLab/LeanType 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
LeanBitLab/LeanType#713 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
LeanBitLab/LeanType#423 · 1 則留言 ·
維護者通常 1 天內回覆
-
Crush Report未關閉
難度 3/5 1-2 天 新手友好度 20/100
LeanBitLab/LeanType#715 ·
維護者通常 1 天內回覆
-
Text Expander/cursor-handling bug可能已有人在做 @LeanBitLab 於 2 天前認領。 未關閉bug
難度 3/5 1-2 天 新手友好度 62/100
LeanBitLab/LeanType#703 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
enhancement
難度 3/5 1-2 天 新手友好度 45/100
LeanBitLab/LeanType#699 ·
維護者通常 1 天內回覆
查看 LeanBitLab/LeanType 的全部 Issue
相似的 Issue
-
afk-ok area:data-quality importer size:S
難度 2/5 1-3 小時 新手友好度 75/100
enorm-labs/event-junkie#3767 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 82/100
leboncoin/spark-android#2342 ·
維護者通常 1 天內回覆
-
The Voraton URL has been changed可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉Bug Domain changed
難度 2/5 1-3 小時 新手友好度 62/100
keiyoushi/extensions-source#20257 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
bug
難度 1/5 1 小時以內 新手友好度 85/100
維護者通常 1 天內回覆
-
feature
難度 2/5 1-3 小時 新手友好度 62/100
user-grinch/RivoPhoneApp#302 ·
維護者通常 1 天內回覆