core icon indicating copy to clipboard operation
core copied to clipboard

How do I implement a numeric keyboard?

Open CaiqueCosta opened this issue 5 years ago • 2 comments

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

CaiqueCosta avatar Oct 14 '19 20:10 CaiqueCosta

any updates?

tahir-jamil avatar Jul 11 '20 07:07 tahir-jamil

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'] } };

natsukiss avatar Mar 26 '21 13:03 natsukiss