tal
tal copied to clipboard
how to create a hyphen in bbctal keyboard ?
I need to append a hyphen(-),underscore(_) characters in keyboard, but when I try to do the same it shows as a DEL key for hyphen and line break for underscore In the keyboard widget code _populateTheGridWithKeyButtons method checks for this condition and set letter as DEL if it match with a hyphen. So is there any way to include hyphen in keyboard ??
Note : as a temporary solution i have included hypehn and underscore like ' _ ' ,' - ' . (adding spaces after and before character) and detect those key press in the keydown event and remove the spaces in this character and append it to _currentText. But i believe there will be more good solution for this.
Hi @Arunprasanth,
I'm afraid it looks like the keyboard was designed with only letters and numbers taken into consideration. If you want to fix this, I would suggest you duplicate keyboard.js
and find a new way to represent DELETE, SPACE, and BLANK keys in the keyboard. Perhaps keys
should be an array rather than a string?
Thanks,
Tom
@tsadler1988 Thanks for the input, but anyway I have created keyboard with hyphen and underscore in a tricky way that I have mentioned in the question itself.
OK thanks @Arunprasanth. I will leave this issue open for information and in case anyone wants to create a keyboard v2.
We have deprecated this project and there are no plans for active development going forward.
Please see the deprecation notice.