Skip to content

Instantly share code, notes, and snippets.

View bossbojo's full-sized avatar
🏠
Working from home

BiG-BosS bossbojo

🏠
Working from home
View GitHub Profile
onChangeLang(char) {
if (char.key === '*') return;
const th_char = 'ๅ/-ภถุึคตจขชๆไำพะัีรนยบลฟหกดเ้่าสวงผปแอิืทมใฝ';
const en_char = '1234567890-=qwertyuiop[]asdfghjkl;\'zxcvbnm,./';
if (th_char.match(char.key)) {
this.Barcode = this.Barcode.substring(0, this.Barcode.length - 1);
for (let i = 0; i < th_char.length; i++) {
if (th_char[i] === char.key) {
this.Barcode += en_char[i];
return;