Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Add support for Ctrl modifier key and classic keyboard shortcuts (Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+A)

未關閉
#500 8 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
android, kotlin
領域
mobile

研究方向

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 內容生成。

描述

enhancement

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

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

LeanBitLab/LeanType 的其他 Issue

查看 LeanBitLab/LeanType 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。