Skip to content

Conversation

@naveensingh
Copy link
Member

@naveensingh naveensingh commented Dec 26, 2025

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

This is a follow-up of #357. This change introduces a pop-up menu on the second left key in the bottom row (often the comma), providing quick access to emoji and settings.

  • A new keyRole attribute to identify special keys like the new "tools" key. The comma key on most letter layouts is now the tools key.
  • A long press on the comma key reveals a pop-up with icons for emoji and settings.
  • When the dedicated emoji key is enabled in settings, the emoji icon is removed from the tools pop-up and its secondary icon hint.
  • Introduced new key codes (KEYCODE_POPUP_EMOJI, KEYCODE_POPUP_SETTINGS) to handle actions from the tools popup.
  • Refactored the secondary icon drawing logic for better reusability.

Tests performed

  • Test emoji key
  • Test language switch key
  • Test opening emoji palette using pop-up on the second left key
  • Test opening settings using pop-up on the second left key

Closes the following issue(s)

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • All checks are passing.

This change introduces a popup menu on the second left key in the bottom row (often the comma), providing quick access to emoji and settings.

- A new `keyRole` attribute to identify special keys like the new "tools" key. The comma key on most letter layouts is now designated as the `tools` key.
- A long press on the comma key reveals a popup with icons for emoji and settings.
- When the dedicated emoji key is enabled in settings, the emoji icon is removed from the tools popup and its secondary icon hint.
- Introduced new key codes (`KEYCODE_POPUP_EMOJI`, `KEYCODE_POPUP_SETTINGS`) to handle actions from the tools popup.
- Refactored the secondary icon drawing logi for better reusability.

Refs: #62
@naveensingh naveensingh merged commit 5dce3da into main Dec 26, 2025
8 checks passed
@naveensingh naveensingh deleted the naveensingh/key-role-tools branch December 26, 2025 09:58
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.

Faster language switching

2 participants