René's URL Explorer Experiment


Title: Add support for more keyboard types · Issue #3303 · NativeScript/NativeScript · GitHub

Open Graph Title: Add support for more keyboard types · Issue #3303 · NativeScript/NativeScript

X Title: Add support for more keyboard types · Issue #3303 · NativeScript/NativeScript

Description: Hi folks, I'm not only submitting this issue as a feature request, but also as "poor mans documentation" offering a solution to others looking for a similar issue. I'm developing an app where I want the user to be able to enter a PIN cod...

Open Graph Description: Hi folks, I'm not only submitting this issue as a feature request, but also as "poor mans documentation" offering a solution to others looking for a similar issue. I'm developing an app where I wan...

X Description: Hi folks, I'm not only submitting this issue as a feature request, but also as "poor mans documentation" offering a solution to others looking for a similar issue. I'm developing ...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/3303

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for more keyboard types","articleBody":"Hi folks,\r\n\r\n\u003e I'm not only submitting this issue as a feature request, but also as \"poor mans documentation\" offering a solution to others looking for a similar issue.\r\n\r\nI'm developing an app where I want the user to be able to enter a PIN code, so only numbers. I thought I'd use the `number` keyboard type on Android and `phone` on iOS. Android is fine, but I wanted to get rid of the characters in the lower left corner on iOS:\r\n\r\n![keyboardtype phone](https://cloud.githubusercontent.com/assets/1426370/21239630/0015b522-c308-11e6-9b2e-7dd047f98fbd.png)\r\n\r\nSince the {N} [KeyboardType enum](https://github.com/NativeScript/NativeScript/blob/master/tns-core-modules/ui/enums/enums.d.ts#L8-L38) doesn't contain the `numberPad` type I did this ({N}-Angular):\r\n\r\n```js\r\n@ViewChild(\"pincodeField\") pincodeField: ElementRef;\r\nthis.pincodeField.nativeElement.ios.keyboardType = Constants.IOS_KEYBOARD_TYPES.numberPad;\r\n```\r\n\r\nWhere `Constants.IOS_KEYBOARD_TYPES.numberPad` is just a custom property that resolves to [4](https://developer.apple.com/reference/uikit/uikeyboardtype/1624444-numberpad).\r\n\r\nThis gives me a nice and clean PIN entry keyboard 🎉\r\n\r\n![keyboardtype numberpad](https://cloud.githubusercontent.com/assets/1426370/21239632/0018183a-c308-11e6-978b-339aeffb02c0.png)\r\n\r\n\r\nNote that there's also a sweet `decimalPad`, constant value is [8](https://developer.apple.com/reference/uikit/uikeyboardtype/1624452-decimalpad) which renders this keyboard which I'm using for entering fractions (like payments):\r\n\r\n![keyboardtype decimalpad](https://cloud.githubusercontent.com/assets/1426370/21239631/0017e0d6-c308-11e6-8a3a-6553984d224b.png)\r\n\r\n\r\nWouldn't it be nice if I can use this to achieve the same thing?\r\n\r\n```html\r\n\u003cTextField #pincodeField keyboardType=\"numberPad\"\u003e\u003c/TextField\u003e\r\n\u003cTextField #amountField keyboardType=\"decimalPad\"\u003e\u003c/TextField\u003e\r\n```\r\n\r\nSurely these properties are  iOS-specific but differentiating between iOS and Android is quite easy in {N}'s views anyway. Or we can tie the `[keyboardType]=\"keyboardType\"` to a property of the component. We can also just use the closest Android keyboard so users don't even need to bother specifying that seperaterly.\r\n\r\nThanks for considering!\r\nEddy\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40111181-add-support-for-more-keyboard-types?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/EddyVerbruggen","@type":"Person","name":"EddyVerbruggen"},"datePublished":"2016-12-15T20:04:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/3303/NativeScript/issues/3303"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cdf7b989-219a-4435-17bb-35ffe1c8592c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD18:321922:A56317:D485C6:697455C3
html-safe-nonce1346a455a265c1a5e53ef1352591f044052aedf5f28c748b0f063f7e324b2e03
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDE4OjMyMTkyMjpBNTYzMTc6RDQ4NUM2OjY5NzQ1NUMzIiwidmlzaXRvcl9pZCI6Ijc2MzExMDMwODY0NzAzODcxMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd4b658ced385b6c3c363a1d369882bad864f8806b94d729ddd23fd955d6d6edb
hovercard-subject-tagissue:195902626
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/3303/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4e41854cf59deb10de88b99f5b713c3f534e6957786dd7e20f7d38cd5b514130/NativeScript/NativeScript/issues/3303
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e41854cf59deb10de88b99f5b713c3f534e6957786dd7e20f7d38cd5b514130/NativeScript/NativeScript/issues/3303
og:image:altHi folks, I'm not only submitting this issue as a feature request, but also as "poor mans documentation" offering a solution to others looking for a similar issue. I'm developing an app where I wan...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEddyVerbruggen
hostnamegithub.com
expected-hostnamegithub.com
Nonee0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fe7e2e8de6e57740bca50402351ea656f7a4bf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/3303#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F3303
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F3303
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/3303
Reloadhttps://github.com/NativeScript/NativeScript/issues/3303
Reloadhttps://github.com/NativeScript/NativeScript/issues/3303
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/3303
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.4k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 869 https://github.com/NativeScript/NativeScript/issues
Pull requests 58 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects 0 https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security 0 https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/3303
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/3303
Add support for more keyboard typeshttps://github.com/NativeScript/NativeScript/issues/3303#top
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
good first issuehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
hacktoberfesthttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22hacktoberfest%22
https://github.com/EddyVerbruggen
https://github.com/EddyVerbruggen
EddyVerbruggenhttps://github.com/EddyVerbruggen
on Dec 15, 2016https://github.com/NativeScript/NativeScript/issues/3303#issue-195902626
https://cloud.githubusercontent.com/assets/1426370/21239630/0015b522-c308-11e6-9b2e-7dd047f98fbd.png
KeyboardType enumhttps://github.com/NativeScript/NativeScript/blob/master/tns-core-modules/ui/enums/enums.d.ts#L8-L38
4https://developer.apple.com/reference/uikit/uikeyboardtype/1624444-numberpad
https://cloud.githubusercontent.com/assets/1426370/21239632/0018183a-c308-11e6-978b-339aeffb02c0.png
8https://developer.apple.com/reference/uikit/uikeyboardtype/1624452-decimalpad
https://cloud.githubusercontent.com/assets/1426370/21239631/0017e0d6-c308-11e6-8a3a-6553984d224b.png
Post a bounty on it!https://www.bountysource.com/issues/40111181-add-support-for-more-keyboard-types?utm_campaign=plugin&utm_content=tracker%2F12908224&utm_medium=issues&utm_source=github
Bountysourcehttps://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12908224&utm_medium=issues&utm_source=github
featurehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22feature%22
good first issuehttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
hacktoberfesthttps://github.com/NativeScript/NativeScript/issues?q=state%3Aopen%20label%3A%22hacktoberfest%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.