Skip to content

Add Decimal and NumberPunctuation keyboard types#39

Merged
gbourassa merged 2 commits into
mainfrom
add-decimal-number-punctuation-keyboard-types
Jun 3, 2026
Merged

Add Decimal and NumberPunctuation keyboard types#39
gbourassa merged 2 commits into
mainfrom
add-decimal-number-punctuation-keyboard-types

Conversation

@gbourassa
Copy link
Copy Markdown
Member

Summary

  • Adds Decimal keyboard type — maps to KeyboardType.Decimal (Compose) and .decimalPad (iOS)
  • Adds NumberPunctuation keyboard type — maps to KeyboardType.Phone (Compose, closest match for numbers + symbols) and .numbersAndPunctuation (iOS)

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds two new PilotKeyboardType values (Decimal and NumberPunctuation) to expand the set of platform keyboard hints available to PilotTextField consumers, with corresponding iOS and Android/Compose mappings.

Changes:

  • Introduces Decimal and NumberPunctuation in the shared PilotKeyboardType enum.
  • Maps Decimal/NumberPunctuation to the closest available keyboard types on iOS (.decimalPad, .numbersAndPunctuation).
  • Adds Android/Compose mappings for the new enum values and updates the public API snapshot.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
components/ios/base/Types/PilotKeyboardType.swift Adds iOS UIKeyboardType mappings for Decimal and NumberPunctuation.
components/common/src/commonMain/kotlin/com/mirego/pilot/components/type/PilotKeyboardType.kt Extends the shared enum with Decimal and NumberPunctuation.
components/common/src/androidMain/kotlin/com/mirego/pilot/components/ui/type/PilotKeyboardType.kt Adds Compose KeyboardType mappings for the new enum values.
components/common/api/components.api Updates the API snapshot to include the new enum constants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gbourassa gbourassa merged commit 9cd673c into main Jun 3, 2026
1 check passed
@gbourassa gbourassa deleted the add-decimal-number-punctuation-keyboard-types branch June 3, 2026 19:21
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.

3 participants