core
core copied to clipboard
How do I implement a numeric keyboard?
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
any updates?
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'] } };