tal icon indicating copy to clipboard operation
tal copied to clipboard

how to create a hyphen in bbctal keyboard ?

Open Arunprasanth opened this issue 6 years ago • 3 comments

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.

Arunprasanth avatar Mar 12 '18 05:03 Arunprasanth

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 avatar Mar 22 '18 21:03 tsadler1988

@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.

Arunprasanth avatar Mar 27 '18 07:03 Arunprasanth

OK thanks @Arunprasanth. I will leave this issue open for information and in case anyone wants to create a keyboard v2.

tsadler1988 avatar Mar 27 '18 12:03 tsadler1988

We have deprecated this project and there are no plans for active development going forward.

Please see the deprecation notice.

kukulaka avatar Jan 04 '23 17:01 kukulaka