Skip to content

カスタムキーボードの長押しアクションを追加 / Add long-press actions to custom keyboard keys - #1371

Merged
KazumaProject merged 3 commits into
devfrom
codex/custom-long-press-action
Nov 18, 2026
Merged

KazumaProject merged 3 commits into
devfrom
codex/custom-long-press-action

Conversation

@KazumaProject

@KazumaProject KazumaProject commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

日本語

  • カスタムキーボードの文字キーと特殊キーに「長押しアクション」を追加しました。次のカスタムキーボードへの移動、指定したレイアウトへの移動、次の IME への切り替えなど、既存のアクションを選べます。
  • 長押しの判定時間はアプリの既存設定に従います。長押しが成立すると、割り当てたアクションがキーの既存の長押し動作に優先し、一度だけ実行されます。
  • 割り当てを JSON バックアップに保存します。旧バージョンのデータは、長押しアクションが未設定の状態で読み込めます。

検証

  • ./gradlew :custom_keyboard:testDebugUnitTest の 353 件が成功しました。
  • :app:testLiteStandardDebugUnitTest で、保存、JSON バックアップ、DB 移行に関連する 78 件が成功しました。
  • :app:assembleLiteStandardDebug で APK のビルドに成功しました。
  • :app:lintLiteStandardDebug は既存ファイルのエラー 15 件で失敗しました。変更行への指摘は 0 件でした。

English

  • Added a Long-press action option for character and special keys on custom keyboards. It supports existing actions such as cycling custom layouts, opening a specific layout, and switching to the next IME.
  • The gesture uses the app’s existing long-press timeout. The assigned action takes priority over the key’s default hold behavior and runs once.
  • JSON backups preserve the assignment. Layouts and backups from earlier versions load with the action unassigned.

Verification

  • All 353 tests passed for ./gradlew :custom_keyboard:testDebugUnitTest.
  • All 78 focused :app:testLiteStandardDebugUnitTest tests passed, covering persistence, JSON backups, and database migrations.
  • :app:assembleLiteStandardDebug built the APK successfully.
  • :app:lintLiteStandardDebug failed with 15 errors in existing files. Lint reported zero findings on the changed lines.

関連 Issue / Related issue

#1359

@KazumaProject
KazumaProject merged commit 876d4a3 into dev Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant