Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I implement a numeric keyboard? #95

Open
CaiqueCosta opened this issue Oct 14, 2019 · 2 comments
Open

How do I implement a numeric keyboard? #95

CaiqueCosta opened this issue Oct 14, 2019 · 2 comments

Comments

@CaiqueCosta
Copy link

Hello,

I am trying to implement a custom keyboard with only numeric values (like a phone keypad) while also keeping the original English matkeyboard... I need to be able to have toggles between the matKeyboard and a numeric keypad on the same page. How would I go about this and how would I make a numeric keypad input?

This project is in Angular CLI version 7

@tahir-jamil
Copy link

any updates?

@natsukiss
Copy link

const customLayouts: IKeyboardLayouts = { ...keyboardLayouts, numeric_keyboard: { name: 'Awesome layout', keys: [ [ ['1'], ['2'], ['3'], ], [ ['4'], ['5'], ['6'], ], [ ['7'], ['8'], ['9'], ], [ [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp], ['0'], ] ], lang: ['pl-PL'] } };

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

No branches or pull requests

3 participants